I didn't give you the code to use. I told you what your code is doing and gave you a link to the method you are using. That method is removing your new line character. -Either stop removing it, or...
Type: Posts; User: jps
I didn't give you the code to use. I told you what your code is doing and gave you a link to the method you are using. That method is removing your new line character. -Either stop removing it, or...
String demo1[]=demo.split("\n"); is removing your new line characters. Either stop removing them or put them back in.
System.out.println(/*demo1[0]+*/" :- "+ch); Where is the variable ch defined?...