Solved

Java class file to EXE FILE

Posted on 2002-07-11
2
414 Views
Last Modified: 2012-05-04
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();
     }
  }


0
Comment
Question by:mismicky
2 Comments
 
LVL 9

Accepted Solution

by:
Ovi earned 50 total points
ID: 7148421
0
 
LVL 35

Expert Comment

by:girionis
ID: 8917277
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
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now