View Full Version : Java Question!
lhatchy1
November 18th, 2012, 04:27 PM
Hi, if anyone has any Java knowledge...help would be greatly appreciated.
SO I am rather new to Java, so go easy on me.
I want to use a scanner or user input to access and add/change information of an int array.
Any ideas on how to do so, can't find much on google D:
ethanf93
November 18th, 2012, 04:41 PM
That's... pretty vague. The best I can point you to is the official documentation on Scanner: http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html
The first example block,
Scanner sc = new Scanner(System.in); // creates a new Scanner to read from System.in
int i = sc.nextInt(); // reads an integer into i from this Scanner
is a good place to start if you're just starting to use Scanner.
TheMatrix
November 20th, 2012, 02:22 AM
I think what you need is a better user interface. Yes, you can write one yourself for parsing some kind of syntax you make up, but that takes time. I don't know of anything right now, but you can search for it.
Perhaps if you better explain your want, regrettably we can't read your mind for you.
vBulletin® v3.8.9, Copyright ©2000-2021, vBulletin Solutions, Inc.