Solved

Java class file to EXE FILE

Posted on 2002-07-11
2
419 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Configure a Bean in an XML file 4 49
pagenation logic how it is working in my code 1 71
jmeter usage 4 38
junit example issue 2 28
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

726 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