Results 1 to 3 of 3
- 10-02-2009, 07:33 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 1
- Rep Power
- 0
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:
I want to repair it for viewers have more easy to read. Please tell me how to coding a programing to resolve this problem!.Java 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(); } }
Any help is highly appreciated. Thanks!.Last edited by Fubarable; 10-02-2009 at 10:15 PM. Reason: code tags added to aid in readability
- 10-03-2009, 12:16 AM #2
Your question is not clear, but this may help:
Code Conventions for the Java(TM) Programming Language: Contents
db
- 10-03-2009, 12:51 AM #3
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 5
Similar Threads
-
MavenJava - browse source code of all open source projects online
By jirkacelak in forum Java SoftwareReplies: 1Last Post: 11-28-2008, 06:27 PM -
Help me out in compiling the source code
By aks.nitw in forum Advanced JavaReplies: 3Last Post: 10-17-2008, 08:33 AM -
source code of 'javac'?
By Pooja Deshpande in forum Advanced JavaReplies: 2Last Post: 06-04-2008, 11:24 AM -
how to convert source code to xml
By valery in forum XMLReplies: 2Last Post: 08-06-2007, 08:29 PM -
Need a source code
By vissu007 in forum New To JavaReplies: 1Last Post: 07-05-2007, 07:08 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks