« Back
package com.string; public class StringConcat { public static void main(String[] args) { String s1 = "Coders"; String s2 = "arts"; String s3 = s1+s2; System.out.println("Strings before Concatenation"); System.out.println(s1); System.out.println(s2); System.out.println("Strings after Concatenation"); System.out.println(s3); } }
Strings before Concatenation
Coders
arts
Strings after Concatenation
Codersarts
×
Report a Problem:
Description:
Submit