A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: libraries/Filtered_db.php

Line Number: 23

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

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

0

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

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now