what is the actual problem, and what error message do you get?
btw:
catch (NumberFormatException n)
{
System.out.println("BUUUU");
}
this will do no good at all, replace it (everywhere you have a structure like this) by
catch (NumberFormatException n)
{
n.printStackTrace();
}
stultuske
Industrious Poster
4,366 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 23
how are you supposed to choose a line? the #th line in a file? line with a certain index?
stultuske
Industrious Poster
4,366 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 23
so, you read in an int, and you want to read the line on that number spot?
read your file line by line, and keep a counter, which you add 1 to each time you read a new line. if your counter is the same as your entered value, you've got your line.
stultuske
Industrious Poster
4,366 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 23
Question Answered as of 1 Year Ago by
stultuske