String + char = String

String str = "abc";
char test = 'H'
System.out.print(str+test);
실행결과

Last updated

Was this helpful?