i have a file with 2 int's i need to assign them to a variables. the int's are separeated by a space. what method can i use to read each int separeate and then assign it to a variable.
mrjoli021
-3
Junior Poster
Recommended Answers
Jump to PostTry going through the Scanner class. That should be sufficient for your purpose.
All 3 Replies
jasimp
427
Senior Poster
Featured Poster
VernonDozier
2,218
Posting Expert
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
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.