Yes I know I should be programming in Lisp. Yes java sucks. I'm a noob. OK.
I just want to know, how do I read a String from Scanner?
Like suppose I have
Scanner keyboard = new keyboard(System.in);
System.out.println("What is yo name?");
//Is it something like
//String name = keyboard.nextString ?
I've only ever used scanner for numbers so I'm a bit lost here.
>>8
Actually, it's that I refuse to believe there are people out there who like Java I'm sure there are some humans that like Java, but I don't consider them people
If you're are deving in Java get NetBeans.
Then you don't need to wonder about the differences between 'keyboard.next();' and 'keyboard.nextLine()'.
Also I would assign a scanner object like this:
'Scanner kbd = new Scanner(System.in);'
I do not think 'new keyboard' is a legit object.
Also:
"if (books[i] != null){
//do stuff
}"
So assuming books is an array of objects, you can indeed check if object at index i has been initialised.
Name:
Anonymous2009-11-22 20:16
nextInt - Next integer
next - next characters entered until there is a space
nextLn - Entire line
These are basics that I have picked up in college in about two weeks of learning.
As for lisp being better. Someone always says another language is better, always. Every year we do another language and there's always a better one we should be doing.
>>25
So just use Lisp. Then there won't be that better one.
Name:
Anonymous2009-11-22 22:08
Use Emacs! Emacs is the standard!
Name:
Anonymous2009-11-22 22:48
The best programming is done in FLASH
Name:
Anonymous2009-11-22 22:56
>>26
HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
you fanboy retards crack me up