Posts by Code Web • 24 points
1 post
-
0
votes1
answer38
viewsA: Java - How to read a String after a certain character
Use split: public class MyClass { public static void main(String args[]) { String frase = "BEBIDAS/REFRIGERANTE"; String parts[] = frase.split("/"); if(parts.length > 1) {…