Write a Java program to create the concatenation of the two strings except removing the first character of each string. The length of the strings must be 1 and aboveTest Data: Str1 = PythonStr2 = TutorialSample Output:
ythonutorial
import java.lang.*; public class Exercise71 { public static void main(String[] args) { String str1 = "Python"; String str2 = "Tutorial"; System.out.println(str1.substring(1) + str2.substring(1)); } }
Sample Output:
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer