[Solved] Substring of string is not working the way i want [closed]


why don’t you use split method

String[] split = line1.split(",");
System.out.println(split[1]);  

output

 part2

solved Substring of string is not working the way i want [closed]