Use the substring()
function with an argument of 1
to get the substring from position 1 (after the first character) to the end of the string (leaving the second argument out defaults to the full length of the string).
"Jamaica".substring(1);
More Related Contents:
- Need the words between the ” – ” ONLY string splitting [duplicate]
- Can you explain the output of the following source code?
- How to find nth occurrence of character in a string?
- In Java, how do I check if a string contains a substring (ignoring case)? [duplicate]
- How to replace case-insensitive literal substrings in Java
- Java: Getting a substring from a string starting after a particular character
- How does Java store Strings and how does substring work internally? [closed]
- substring index range
- How to replace a substring of a string [duplicate]
- How do I get the last character of a string?
- Finding second occurrence of a substring in a string in Java
- java , inserting between duplicate chars in String [closed]
- Reading String for list of Integers separated by spaces [duplicate]
- How do I compare strings in Java?
- String.equals versus == [duplicate]
- How do I count the number of occurrences of a char in a String?
- How to unescape a Java string literal in Java?
- Converting A String To Hexadecimal In Java
- Java String replace not working [duplicate]
- What’s the best way to build a string of delimited items in Java?
- How to split a string between letters and digits (or between digits and letters)?
- How can non-ASCII characters be removed from a string?
- Java: Split string when an uppercase letter is found
- How to get data from each dynamically created EditText in Android?
- Whats the best way to recursively reverse a string in Java?
- Garbage collection behaviour for String.intern()
- XOR operation with two strings in java
- Use string in switch case in java
- Comparing a string with the empty string (Java)
- Java Scanner class reading strings