www.lautoc.irutm
Remove the first character from the Java string/**
* @author lautturi.com
* Java example: Java remoe the first character from string
*/
import java.util.*;
public class Lautturi {
public static void main(String[] args) {
String str1,str2,str3="hello lautturi java world!";
//substring(beginIndex,endIndex)
str1 = str3.substring(0,5);
//subtring(beginIndex)
str2 = str3.substring(1); // remoe the first character
System.out.println(str3);
System.out.println(str1);
System.out.println(str2);
}
}