In java i know who to get letters from a string. String first = firstName.substring(0,3); This will her first three letters. But how do i get letters starting from 2nd letter to end assuming there is a 2nd letter and onward. Some thing like this String first = firstName.substring(2,end); but the end should be replaced with what?? Thanks
1
Expert's answer
2016-09-30T14:34:03-0400
public class Main { public static void main(String[] args) { String s = "Test string";
Comments
Leave a comment