Write a Java program to create the concatenation of the two strings except removing the first character of each string

  • برمجة جافا
  • برمجة

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 above
Test Data: Str1 = Python
Str2 = Tutorial
Sample 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:

ythonutorial
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...