Watch in HD for better viewing.
Learn to take information from the user and use the information in your programming.
Code:
class TakeInformation {
public static void main(String args[]) {
Scanner myScanner = new Scanner(System.in);
String input;
System.out.println("Please enter your name...");
input = myScanner.nextLine();
System.out.println("Your name is: " + input);
}
}
Please check out my other vids for more tutorials. Also, please leave comments with any suggestions.
Subscribe, comment, rate.
@oHKCOLEo Well I'm actually learning java at the moment, and making videos to help reinforce the information. But yeah, I have a lot of free time so I upload them and I'll answer any questions you have about it that I can answer!
NetbeansTutorials 3 weeks ago
@NetbeansTutorials wow. example fail, i already got it .
2yung4grey 1 month ago
@NetbeansTutorials hey man, are you going to make tutorials continuously, or just stop after like 6, like all the rest of the lazy youtubers? :P
if you are ill sub+watch :D
oHKCOLEo 1 month ago
@2yung4grey The answer, with netbeans, would be:
public class Howtouseasscanner { public static void main(String[] args) { Scanner sc = new Scanner( System.in ); System.out.println("What is your name?"); System.out.print("input, please =>"); String dateOfBirth = sc.nextLine(); System.out.println("Hello, your date of birth is " +dateOfBirth+ ". Welcome to Scanners!");
NetbeansTutorials 1 month ago
@oHKCOLEo
When you create a project, you create three folders that house data and resources for your netbeans class files. The project contains your package, the package contains media, class files, and such, and then your source code has references to where it's housing data can be found, which you've just listed. They are your package Newproject and public class Newproject.
NetbeansTutorials 1 month ago
you should continue your job XD cause not many people doing tutorials for textpad Thanks alot ;)
abostef77 1 month ago
Well said, great job. Helped with a little review before my next Java class. :)
Acasha72 1 month ago
Thanks for the tutorial :)
LyleLe 1 month ago
when i started my project on netbeans it had this on it "public class NewProject" and "package newproject;"
what are these 2 lines? whats the public for inpublic class?
oHKCOLEo 2 months ago in playlist More videos from javaprogrammer345
why u use static void and etc? we dont use this..we are in the first 6 mounth
TheDemonStr 3 months ago