Repair source code content....!!!
Hi everybody!.
I have a problem need to be helping!.
I have a java source code but the contents in this source code not to be right format, every statement in a single line. It's very difficult for viewer.
ex:
Code:
.......
public class ReadFile
{
public static void main(String args[]) throws IOException
{
int i;
FileInputStream fin;
try
{
fin = new java.io.FileInputStream("a.txt");
}
catch(FileNotFoundException exc)
{
System.out.println("File Not Found");
return;
}
do
{
i = fin.read();
if(i != -1)
System.out.print((char) i);
}
while(i != -1);
fin.close();
}
}
I want to repair it for viewers have more easy to read. Please tell me how to coding a programing to resolve this problem!.
Any help is highly appreciated. Thanks!.