I'm try to go through a file that's formatted as follows:
f 5//10 3//2 6//3
f 9//3 20//15 3/20
etc.
I want to pull out the numbers, subtract them by some set number, and then output them. I'm using a scanner to read each line of the file, but next Int doesn't seem to work since I have the // between some of the numbers. I know there has to be some simple way to deal with this, but I'm having a hard time finding what to do.
SiraRaven 0 Newbie Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
SiraRaven 0 Newbie Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
musthafa.aj 6 Posting Whiz
masijade 1,351 Industrious Poster Team Colleague 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.