Learn Javascript - bit.ly/JavaScriptPlaylist Learn Java - bit.ly/JavaPlaylist Learn C# - bit.ly/CSharpTutorialsPlaylist Learn C++ - bit.ly/CPlusPlusPlaylist Learn C - bit.ly/CTutorialsPlaylist
@atphamnguyenngoc1254 жыл бұрын
and Python ?
@anodosarcade73555 жыл бұрын
Do you have "Taco Queen" as a hotkey? .....do i want to know why?
@renejacques82884 жыл бұрын
Every video and textbook has told me not to used float or double for money, but they never told me what to use. That was my biggest question. I've been around java now for 22 years now off and on, and this is the very first time I'm told what data type to use for currency. Thanks.
@hihellookay123 Жыл бұрын
Day 1 🙌 Done 10 out of 100, 90 more to go let's go! 🔥
@cjmc79195 жыл бұрын
This has helped me a lot! I was able to make a program that guesses your age based off of your birth year input!
@jebskie76615 жыл бұрын
{ Int currentyear = 2019 Int birthyear = 0 Int result = 0 He will then input his birthyear Int result = currentyear - birthyear System.out.println("This is your age:" - result); }
@jebskie76615 жыл бұрын
Is mine correct?
@been57035 жыл бұрын
@@jebskie7661 That didnt work for me. What is the purpose of int result = 0?
@been57035 жыл бұрын
@@jebskie7661 { System.out.println("What year were you born?"); Scanner scanner = new Scanner(System.in); int currentyear = 2019; int birthyear = scanner.nextInt(); //He will then input his birthyear int result1 = currentyear - birthyear; System.out.println("This is your age: " + result1); }
@chirupower13175 жыл бұрын
System.out.println("enter your dob year"); Scanner scan = new Scanner(System.in); int year = scan.nextInt(); int age = 2019 - year ; System.out.println("you are " + age + "years old");
@HyperActive946 жыл бұрын
you are a good teacher. thnx
@flameofthephoenix83952 жыл бұрын
2:51 It's interesting to think about how this is a program taking input, outputting that input, and then using the input for a secondary program which also outputs the input.
@mossbaby015 жыл бұрын
Thank you for the wonderful videos! They serve as a good alternative for when book learning gets a bit boring. :)
@dafoundation33884 жыл бұрын
word to my mother this guy better than all my lecturers lmao
@JoshuaTCoe4 жыл бұрын
look at curry man, so inspirational
@meghasbabu34374 жыл бұрын
Thanks a ton for this!!!
@OccupyZero2One5 жыл бұрын
Spot on with the explanation!!
@ballerinamoon3 жыл бұрын
Your videos are so enjoyable.. Are you that New Boston guy?
@tishaanants3 жыл бұрын
Thanks
@karmac20234 жыл бұрын
explanations are great! thank you
@facemonster1144 жыл бұрын
Great video again man
@hawadrammeh88704 жыл бұрын
Thank you
@kirsher13564 жыл бұрын
what are you using to enter the code?
@matwit914 жыл бұрын
Thank you for your video, I have one question about an Eclipse. On 4th minute you are showing some windows with tips, on my version is all dark. How is called that? Maybe I will find it, or if you know how can I change it? Same issue with dark or light appearance - it's always black like blank page.
@matwit914 жыл бұрын
I found name of it. It's called Javadoc
@elhombreenmascarado56404 жыл бұрын
Mister, if using encapsulation, when having a class with its private attributes, I only need to enter data using the set method. How do I implement Scanner in the set method for classes with private attributes?
@miminiz32684 жыл бұрын
is scanner the equivalent to cin in c++?
@Harda13375 жыл бұрын
Is there a scanner type for "char" or do I use byte in that case?
@Harda13375 жыл бұрын
Nevermind I found out that you can use next().charAt(0) to read which character the first character in the string was.
@dopeydoggo7755 жыл бұрын
At around 5:20 I don't get an input mismatch error if I just put in a random letter or number to the boolean scanner, it just evaluates as false
@samedsgrtmc47875 жыл бұрын
it is confusing to name the variable as scanner, not a good choice for new learners.
@j3froc635 жыл бұрын
At 2:42 line 9: int y=scanner.nextInt(), what if I wrote in the console log "abc123"??? Does it find the next Int and store it in variable y???
@Rose-Stro4 жыл бұрын
my code won't even run. When I input string x = scan.nextLine(); or even string x = scan.next(); , the code after it won't even run.
@paxthewax42034 жыл бұрын
what IDE are yo using?
@Rose-Stro4 жыл бұрын
@@paxthewax4203 eclipse
@ebrahiemryklief88554 жыл бұрын
Do you clear the previous lines of code before you start a new line?
@Babbelmus4 жыл бұрын
meh... what about scanner.close() and going further? So like Scanner scanner = new Scanner(sysin); ...do something scanner.close(); ... later scanner = new Scanner(sysin);
@Cookingcousin5 жыл бұрын
Hey, can someone explain the importance of scanner before a method?
@kakoliparial44105 жыл бұрын
The Scanner Input Tutorial 10 was not very clear.
@vivianamullen25274 жыл бұрын
It's not repeating what I type. Help?
@haseebmalik29836 жыл бұрын
i get it now never mind
@ashprasad90755 жыл бұрын
How did you get ?
@nephtalybahenamartinez73885 жыл бұрын
I liked it, but you went too fast. Thanks for the video.
@samarthscubingcorner34273 жыл бұрын
5:57
@dawnrobertson49825 жыл бұрын
Fast pace on casting
@kirsher13564 жыл бұрын
i am using repl.it
@darrylalexanderevanswebgra48975 жыл бұрын
Thanks. I have another question to ask you about a problem. Can I send you a screen shot?
@haseebmalik29836 жыл бұрын
how is y assigned to 20?
@karolborowski42024 жыл бұрын
0:35
@JohannFreytagvonLoringhovenCS2 жыл бұрын
Please for the love of god use dark mode
@randy44435 жыл бұрын
i want a scanner that asks a question to the user. He then puts in a value then it gives the value. exp: enter number of students applied to college enter how many get accpeted; then the value it gives is the the acceptance rate in percentage. help please
@clararoads48544 жыл бұрын
Scanner scanner = new Scanner(System.in); /* * a scanner is unable to "ask a question to the user", to print a message to * the console, "System.out.println()" must be used */ float applied = 0f; float accepted = 0f; System.out.println("enter number of students applied to college"); String appliedString = scanner.nextLine(); // the input must be taken in String format, then converted to int, per the try-catch block try { applied = Integer.parseInt(appliedString); } catch (NumberFormatException e) { System.exit(1); } System.out.println("enter number of students to get accepted to college"); String acceptedString = scanner.nextLine(); try { accepted = Integer.parseInt(acceptedString); } catch (NumberFormatException e) { System.exit(1); } float acceptanceRate = (accepted / applied)* 100; System.out.println("the acceptance percentage is : " + acceptanceRate + "%");