+ 1
How to concatenate static string and user input String in java?
Example String str1="Sololearn"; Scanner scan=new Scanner(System.in); String str2=scan.nextLine(); input str2 string is "is best place to learn code" i want to concatenate str1 and str2 to how can i do it?
3 Antworten