Solved

Java class file to EXE FILE

Posted on 2002-07-11
2
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

717 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