I have a feeling it is something simple troubling me, I just cant find out what that problem is. The progam is SO CLOSE! please help me.
that little bit is the problem, I can compile and run, but it only executes the first line of the file and asks for the file again, then does the first line AGAIN and asks for the file AGAIN and so on and so forth repeating untill I terminate the box. If you have any suggestions, me and my friend are having the same problem, thanks for your time,
Steve
Code:
public class BubbleSort2
{
public static void main (String args[]) throws Exception
{
String filage="";
String linetext;
BufferedReader inWords=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please input the name of the file from which the data will be acquired. Be sure to use the entire path.");
filage=inWords.readLine();
while((linetext=inWords.readLine())!=null)
{
Sort(filage);
}
}
Steve
Comment