Hmm... ive never used a map before, but I looked it up and it seems a bit weird. Could you give me a basic explanation as to how to do what I need to do with it?
Type: Posts; User: Saintroi
Hmm... ive never used a map before, but I looked it up and it seems a bit weird. Could you give me a basic explanation as to how to do what I need to do with it?
That makes sense. I will try that as soon as I get a chance tomorrow. And squeakbox, ready was the conditional you have to use for a BufferedReader, and I intended for the user to enter e when done,...
Thanks a ton! Even though that page said StringTokenizers were outdated and to use the String.split method, I took your advice and got it to read. and semi-work! It reads the lines now, but perhaps...
I'll go ahead and post this; this is the code I used at first and what I like to use, but it does not work like I need it to, as you'll see if you run it.
import java.util.*;
public class...
Possibly so, but how do you tokenize a string? Ive only been doing Java since January, so there's a lot I don't know about! Haha.
So, i'm doing this program that takes 2 lines of input, the first line being a number that signifies how many numbers are going to be in the next line. I then have to find which number in the second...