}
I have an input.txt file, i want call that from console. This file includes whitespaces and quotes. I write this code but it give me the error. Where is my fault in this code, guys?
Also, if (chars[i]=='"'){
j = i ;
i++ ;
while (chars[i] != '"'){
i++;
}
System.out.println(str.substring(j,i));
}
because of the error, the print does not work.