Link to home
Start Free TrialLog in
Avatar of mismicky
mismicky

asked on

Java class file to EXE FILE

How could i build the java class file to EXE FILE?




import java.io.*;
 class readblood
 {
 public static void main(String args[])  throws Exception
 {
   BufferedReader buffereader=new BufferedReader(new FileReader("data1.txt"));
   
   String instring;
   String text="";
   String outstring="";
   int iRow=1;
   int iIndex=0;
   char cTemp;
   
   while ((instring=buffereader.readLine())!=null)
    {
         text=text+instring;
    }
   
   buffereader.close();

  cTemp=text.charAt(iIndex) ;
  while(iIndex<text.length())
   {
        cTemp=text.charAt(iIndex);
 
   switch (cTemp)
   {
        case '' :
                outstring=outstring+"\n‘æ"+iRow+"‘g:";
                iRow++;
                break;
       
        case '' :
                outstring=outstring+(char) 13;
                break;
         default  :
                outstring=outstring+cTemp;
                break;
  }
        iIndex++;
   }
          FileWriter filewriter=new FileWriter("micky2.txt");
          filewriter.write(outstring);
          filewriter.close();
     }
  }


ASKER CERTIFIED SOLUTION
Avatar of Ovi
Ovi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of girionis
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to Ovi

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer