create string separeted by comma java code example
Example 1: comma in java variable
int index = -1, i;//What is this type of declaration
// Nothing but
int index = -1
int i;
String s = "hi",stri; //What is this type of declaration
// Nothing but
String s = "hi";
String stri;
Example 2: separate string by comma java
String names = "prappo,prince";
String[] namesList = names.split(",");