0

i'm creating a code, and in a a string:

   String server = "false|Nao conectado!";
   String status[] = server.split("|", 2);
   System.out.println(status[0] + " - " + status[1]); //t - rue

How to parse the "false" in a string, and the rest in other?

DaviDEV
  • 17
  • 6

0 Answers0