'How can I get the text after one character in a String in Java [duplicate]
I have the next String:
com.microsoft.sqlserver.jdbc.SQLServerException: User not found
I want to get the next String starting from the previous:
User not found
How can I get that using JDK 7?. The "com.microsoft.sqlserver.jdbc.SQLServerException:" its the same always
Solution 1:[1]
String myString ="com.microsoft.sqlserver.jdbc.SQLServerException: User not found";
myString=myString.replace("com.microsoft.sqlserver.jdbc.SQLServerException:","");
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mark Rotteveel |
