✔ 最佳答案
to concate two string, just use [+] operator. try following code:
public class StrAdd
{ public static void main( String[] args )
{ String str1 = new String( "a" );
String str2 = new String( "*" );
String str3 = str1 + str2;
System.out.println( str3 );
}
}
if u want to get double for this string, just use [+=]. try following code:
public class StrDouble
{ public static void main( String[] args )
{ String str1 = new String( "*" );
str1 += str1;
System.out.println( str1 );
}
}
hope can help u