If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
I'm a beginner for Java so I get doubts pretty much every time. Sometimes when I listen to my lecturer and I don't get what he says, I get a headache but at the same time your videos come into my mind and my worries subside. Cause I know I can always rely on your videos. Thank you very much for the support.
I love how the outro is always thanking us for being here when we can be anywhere in the world - meanwhile I am driving so I am everywhere and still here. I do like the kindness, keep that up!
I've only recently started watching this playlist on Java Basics 1. I have to say this one video Is the only difficult one yet for a beginner since It feels out of order. I'll have to watch ArrayList video and then come back to recap on those last few minutes.
Hi, thank you for making these. Recently started learning about java and these videos are a lot of help. Summarizing a big concept in 6-8 min is a winner! Hope you will make more videos in the future about other program languages :)
I’ve been watching all ur videos they really help. I actually learned the first course of c++ but my next class is in java and I’ve legit been watching all of this to see what’s different from c++ to java
Hello, so im working on a program for my class and im having trouble with my method, specifically the looping part. So, ive done research and still couldnt find an answer so im hoping maybe you could help. In my method im suppose to search if the user input matches my string array, and if it doesnt match the program should keep looping until the user types in a string that matches one of the strings in the array and returns the index that corresponds to the input. I have tried multiple loops but it 1. loops on forever even if I input the correct 2. Doesnt loop at all
Hey Jhaz, well you're definitely on the right track using a while loop. You're gonna want to use that until the user enters a string that matches your array. So I can be more helpful for you, you can email me your code and a brief description to my email, alexlorenlee@gmail.com and I'll see what I can do to help you get it working
Hello :D I have a question: Why this line of code looks like this : ArrayList words = new ArrayList(); and not like this: ArrayList words = new ArrayList(); As i checked it also works, so can I use each of those alternately? :D
while( counter is greater than 0 && AND counter is less than or equal to number){.....} Whatever in the () is always a boolean, meaning the complier will check if it evaluates to true or false. In the above example, you are basically asking the language each time the loop runs, "Is the counter greater than 0? AND the counter less than or equal to the number?) And that will produce either false, or true.
You used angle brackets when using the ArrayLists, which you didn't use in your other video where you exclusively talked about them. Is there a situation where using, for example, is crucial for the program to work?
how would I create a sequence of while loops? for example, if i wanted the first while loop to count from 1-10, the next 10-1, would I add that all in the same class?
Maybe it’s just me, but I find the hand cam distracting. I can see what you’re typing on the screen, I don’t need to see your hands do it. Not trying to be a hater though, programming TH-camrs like you have saved my grade many times, much respect.
// Create an array, it could be anythin.... ArrayList months = new ArrayList(); // Add elements to it. months.add("Jan"); months.add("Feb"); months.add("Mar"); months.add("Apr"); int index =0; Scanner sc = new Scanner(System.in); System.out.println("Enter your guess: "); String input = sc.nextLine(); while (index < months.size()){ switch (input){ case "Jan": System.out.println("The month is: " + input); break; case "Feb": System.out.println("The month is: " + input); break; case "Mar": System.out.println("The month is: " + input); break; case "Apr": System.out.println("The month is: " + input); break; default: System.out.println("I don't know your guess."); break; } index++; input = sc.nextLine(); } sc.close();
Would you be able to do an example of do-while loop but instead of integer to terminate the program we use a string to stop the program? e.g. while(value == "stop")
Hi Alex! thanks for the tutorials.. You Are The Man :)) but I have a question... Let's say that I'd like to create an arraylist like this ; String words [ ] = { } ; instead of ArrayList words = new ArrayList(); or ArrayList words= new ArrayList(); but the problem is... when I want to add the words that we scan on the string that we created to the list , I get an error.. ("Cannot invoke add(String) on the array type String[] ") I've tried to use Arrays.toString() method.. but I guess there is something that I miss.. Could you help me out?
How do you use a system.in.read(); in a while or do while loop where it makes a random number and you have to guess a number 1-10 and if you guess the right one it stop the program but if it's incorrect it says guess again.
Can someone help me with this: Write a while-loop that prints x plus signs on the same line. public static void runLoop(int x){ // complete the loop below while(){ System.out.print(); } }
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
Are you sureeeeee
I'm a beginner for Java so I get doubts pretty much every time. Sometimes when I listen to my lecturer and I don't get what he says, I get a headache but at the same time your videos come into my mind and my worries subside. Cause I know I can always rely on your videos. Thank you very much for the support.
fer sure
I agree
I love how the outro is always thanking us for being here when we can be anywhere in the world - meanwhile I am driving so I am everywhere and still here.
I do like the kindness, keep that up!
wtf
wtf
wtf
Hello! I know you don't make the Java tutorials anymore, but just wanted to say thank you. They are so helpful!
its not everyday i to get see handsome guy teaching me coding
Shoot your shot! 😂🤣 Alex Lee, what's your response?
I'm shooting too
ikr that too in a understandable manner
Ikr lmaoo
Did this work? Are they married?
I've only recently started watching this playlist on Java Basics 1. I have to say this one video Is the only difficult one yet for a beginner since It feels out of order. I'll have to watch ArrayList video and then come back to recap on those last few minutes.
yes this is like the only one where honestly I was confused watching
maybe this: th-cam.com/video/8FLgge8QydI/w-d-xo.html
At least I'm not the only one who thinks this is kind of confusing.
I now recapped and this is nothing haha I was confused too
this isnt recent thats 10 months ago
Nice! Loops are pretty essential for coding, this is good to know.
Hi, thank you for making these. Recently started learning about java and these videos are a lot of help. Summarizing a big concept in 6-8 min is a winner! Hope you will make more videos in the future about other program languages :)
I am now studying java because of my school, even though I can't easily understand. I will do ma best for this :)
I'm here to learn about while loop but I'm kinda in love with your keyboard I love the sound
I’ve been watching all ur videos they really help. I actually learned the first course of c++ but my next class is in java and I’ve legit been watching all of this to see what’s different from c++ to java
You are looking good. Learning c++ first will make things a lot easier for you.
Huhu tnx for this, I'm going to make presentation about while loops in our Java Subj. It helps me a lot🥰
You are the best!!! I have subscribed and liked all most every video of yours!!!!!!
I was looking for something like this!! Finally, ty.
Hey, Alex! The video was quite informative and helpful. I get to know a lot about Java... thanks to you...
Thank you Alex, I appreciate the explanation and then then the further introduction to other concepts that I'll be seeing in the future.
I want to say thank you for these videos! They are super helpful :)
yeah sooooo how'd the flat tummy challenge go?
@@TrevCommentsStuff i hope ur not bad at soccer .
straight to the point , I love it ! as a complet beguinner thanks a lot for your hard work , keep up
I love ur explanation it's so easy to understand, keep up the good work 💗!!
Just found your channel. Excellent video explaining while loops.
Thank you dude this helped out a lot
Thanks for all these vids bro
Really helps
Very awesome and helpful video!
Nice HHKB! I have one too, and my dream keyboard is the Norbauer Heavy Grail.
i like background instrument while watching your leasons wonderfull.......😍😍😍
thank you, you always make things easier
This explains reincarnation, and why people feel "stuck in loops" every day. Why they feel like they cant get ahead in life.
last line ❤
thanks for the videos bro... it is very useful for me ... 2021
I wish you were my Java teacher! You are awesome!
tysm ur carrying my ap comp sci grade 🙏🙏
Really helpful. Thank you so much💜
Thanks a lot,
your explanation was really amazing and it was really helpful
6 january 2022 great day an lesson,Thanks Alex
Thanks a lot brother ❤ this helps me so much!
Excellent! Very helpful 🙏🏻 massive thanks
I didn't know Scanner scanner = new Scanner(); could have anything besides a (System.in); statement....This changes things... thanks!
This video help me alot!
You earned my respect...
Do you have full courses?
This helped me so much!!
Love the keyboard
god i love this channel
Thank you!
I wish you are my professor for the CS class
Awesome 🙌🏼
WoW great thank you so much 😘
Good music! And nice video too ;)
Hello, so im working on a program for my class and im having trouble with my method, specifically the looping part. So, ive done research and still couldnt find an answer so im hoping maybe you could help.
In my method im suppose to search if the user input matches my string array, and if it doesnt match the program should keep looping until the user types in a string that matches one of the strings in the array and returns the index that corresponds to the input. I have tried multiple loops but it 1. loops on forever even if I input the correct 2. Doesnt loop at all
Hey Jhaz, well you're definitely on the right track using a while loop. You're gonna want to use that until the user enters a string that matches your array. So I can be more helpful for you, you can email me your code and a brief description to my email, alexlorenlee@gmail.com and I'll see what I can do to help you get it working
Alex Lee thank you! Unfortunately I wasnt able to work on my program today, but ill def tmrw nd send you a email
Great video as always but that was definitely confusing.
You're a cool dude, thank a lot!
Hello :D
I have a question:
Why this line of code looks like this :
ArrayList words = new ArrayList();
and not like this:
ArrayList words = new ArrayList();
As i checked it also works, so can I use each of those alternately? :D
I would like to know the answer to this too!
best tutorials
Thanks bro
Hi Alex, love your videos they are awesome. I was hoping you could explain this line of code:
While(counter >0 & & counter
&& means "and" it adds a secon boolean
while( counter is greater than 0 && AND counter is less than or equal to number){.....}
Whatever in the () is always a boolean, meaning the complier will check if it evaluates to true or false. In the above example, you are basically asking the language each time the loop runs, "Is the counter greater than 0? AND the counter less than or equal to the number?) And that will produce either false, or true.
Thanks a lot
You used angle brackets when using the ArrayLists, which you didn't use in your other video where you exclusively talked about them. Is there a situation where using, for example, is crucial for the program to work?
Thank you these videos are awesome. Do you have a video on adding repetition statements in a netbeans menu?
how would I create a sequence of while loops?
for example, if i wanted the first while loop to count from 1-10, the next 10-1, would I add that all in the same class?
Hello brother I have a doubt can u tell me how we can remove those commas between them
and thank you for doing such a great job thank you so much
Do - while is a post test loop
which keyboard are you using i totally dig the retro look and sounds less clicky than mine
i just realized, wait that's possible? then i should have use that on my assignments.
anyways, wow great job
I can ask you how much year after achieve you programming and ano you learn ihope you answer my question becuase I like programming but I'm newbie
Yo this is better then code.org
mad dog! thanks so much!!!
Hi do you have a video of where you use while, for loop, or do while where you can display the string depending on the of times given by the user?
Why do you add a new class when you start the project?
Maybe it’s just me, but I find the hand cam distracting. I can see what you’re typing on the screen, I don’t need to see your hands do it. Not trying to be a hater though, programming TH-camrs like you have saved my grade many times, much respect.
What app is he running that allows him to practice code?
THank you, broooooooo
Would you please make a new Print video and include the functionality of Printf?
You're my preferred go to when I need help. Thank you
hey Alex I'm stuck on one while loop, Is there any way you can help me out Please
i want to break from a while loop when the user enter specified letter how can i do it he told me could not convert string to float: 'e'
can you make an array of numbers that has negatives and positives and separate only the negative?
very good.....
Alex, can you have a switch statement inside a while ?
Yes, you can. Do you have any examples in mind that I can try?
// Create an array, it could be anythin....
ArrayList months = new ArrayList();
// Add elements to it.
months.add("Jan");
months.add("Feb");
months.add("Mar");
months.add("Apr");
int index =0;
Scanner sc = new Scanner(System.in);
System.out.println("Enter your guess: ");
String input = sc.nextLine();
while (index < months.size()){
switch (input){
case "Jan":
System.out.println("The month is: " + input);
break;
case "Feb":
System.out.println("The month is: " + input);
break;
case "Mar":
System.out.println("The month is: " + input);
break;
case "Apr":
System.out.println("The month is: " + input);
break;
default:
System.out.println("I don't know your guess.");
break;
}
index++;
input = sc.nextLine();
}
sc.close();
I always find a way how to learn programming it's hard especially I'm a beginner then I saw this video 🧐
hello, do you have a video where you input a number and a sentence repeats on what number you did input, if that makes sense 😅
I think that's for loop?
@@EasyThings_ thanks
Im going to make a app for practice and hopefully it runs called "Grandpa Wars"
you are amazing
Would you be able to do an example of do-while loop but instead of integer to terminate the program we use a string to stop the program? e.g. while(value == "stop")
Hi. How a while loop can end when the user press "ENTER"? Thanks.
curly brace should always be on the same line
The type ArrayList is not generic; it cannot be parameterized with arguments
It is showing me error
Can you do guessing game by using while loop?
you better save my grade
nice keyboard
really blurry, but thank you for doing this...
Get glasses then blindy
Hi Alex! thanks for the tutorials.. You Are The Man :)) but I have a question...
Let's say that I'd like to create an arraylist like this ;
String words [ ] = { } ; instead of ArrayList words = new ArrayList(); or
ArrayList words= new ArrayList();
but the problem is... when I want to add the words that we scan on the string that we created to the list , I get an error..
("Cannot invoke add(String) on the array type String[]
") I've tried to use Arrays.toString() method.. but I guess there is
something that I miss.. Could you help me out?
can i ask you what a++ mean? i think its like "oh, add one to a" but i'm not sure...
a++ is equivalent to "a = a+1". This means that i every loop, the value of a increases by 1.
@@advaithbala thx
How do you use a system.in.read(); in a while or do while loop where it makes a random number and you have to guess a number 1-10 and if you guess the right one it stop the program but if it's incorrect it says guess again.
is an instance variable a field?
what's with the old school keyboard?
10th time watching this video, thanks for saving my career(I'm 16 yo)
same ayyyy
for the while loop of a < 10 I wrote the exact same program but mine didnt stop at 9 like yours did, mine kept going on. Do you know why?
a++
How do you stop while loop if you're gonna input a keyword Stop or End?
You may want to reorganize this video on the playlist. the arraylist is very out of place and I was very confused when you brought that up.
@@javatutor8322 Please stop spamming other people's channel to get yourself noticed. If people want they'll watch your content.
this is the only one i couldn't get it!!!!!!!!!!
Can someone help me with this:
Write a while-loop that prints x plus signs on the same line.
public static void runLoop(int x){
// complete the loop below
while(){
System.out.print();
}
}
I think you explain nicely, but the music in the background is really distracting, so I have to change the video.
i think my head gonna explode