hello im new in java and i have to do simple program and can read from txt file
ct_hunny
0
Newbie Poster
Recommended Answers
Jump to PostWhat does the text file look like?
Jump to PostYou should use the scanner class for that.
First import java.util.*;As you are new to java, I'll give you a sample of how to do it. Normally, you would want to declare it before your constructor. It needs to hava a varible name that can be anything. I always …
Jump to PostFirstly, JamesCherrill reminded me that it might be a good idea not to take shortcuts, and teach you the best way to do this. I tend to be more precice in my own code, but you should know the right way to do it. In catching, you should use catch
…
All 10 Replies
thines01
401
Postaholic
Team Colleague
Featured Poster
joankim
ct_hunny
0
Newbie Poster
joankim
NormR1
563
Posting Sage
Team Colleague
joankim
NormR1
563
Posting Sage
Team Colleague
joankim
NormR1
563
Posting Sage
Team Colleague
joankim
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.