Instructions
- 1
Right-click the JSP file you want to edit and select "Open With." Select your preferred JSP editor.
2Create the two strings you want to use. The following code creates two strings you can concatenate:
String str1 = "First String";
String str2 = "Second String";
Append the second string to the first string using the "+" character. The following code appends "str2" to "str1":
String appended = str1+str2;
4Print the results to the user's screen. The following code displays the new string to the user:
System.out.println(appended);
No comments:
Post a Comment