The For Loop in Java
ฝัง
- เผยแพร่เมื่อ 18 มี.ค. 2020
- Java Programming: The For Loop in Java Programming
Topics Discussed:
1. The for loop.
2. For loop vs. while loop.
3. Infinite for loop.
4. How to use a for loop just like a while loop.
Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
Contribute: www.nesoacademy.org/donate
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy.org/recommende...
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#JavaByNeso #JavaProgramming #ForLoop
Sir, you are teaching better than my teacher
Just have to say, you're a legend. Thanks for all the videos brother! You are helping a student in need.
Indeed. He’s helping a lot of students. He’s a good man.
You’re good at explaining. Concise and articulate.
I am learning Loops right now and I thank you for explaining so well!
I am understanding these concepts easily after learning C
Why system .out +i
MG bro😂😂😂🎉🎉
MG bro🎉🎉🎉😂😂
thanks thanks thanks a lot these videos are a lot a lot clear and detailed the coomparision u did here is just awesome . we truly need this kind of videos
I've been on for loops for almost 2 weeks now. You sir explained it brilliantly. I felt like a genius when the light bulb went on 😄.
a better example of for loop than I got at uni........thanks bro
Great explanation!!! Thanks for helping me understand better!!!
incredibly thorough video. Thank you!!
damn I never even thought that I could understand loop in just 8 minutes, better than my prof
I swear me too!
Great explanation, excellent work.
Well explained .Thank you .keep it Up !
That is best explanation I have ever seen
Thank you so much this helps me lot
Such a life saver!!! THANK YOU THANK YOU THANK YOU
Great sir. Really useful
Best explanations !
Thanks so much!
this helps a lot
simply legendary.
Best explanation ever!
great video! thank you
Thank you pal! God bless you
Helpful
Tq..you made it more easier
Thank you so much for teaching you're amazing and may Allah bless you Jazakallah
Well explain thnku for this video
Wonderful ✨🙏🏾
Thank you.
"As you can see" gets me too much🤣 though thank you for making it easy to understand!
thank you.
Thanks, I got it so nicely😊😉
Thanks
incredible video
you explain better than my professor, thank you
A great video ❤
thx
You are just awesome!! 😭
thanks man
Excellent discusssion it was really clear. tho at 7:05 will adding a return i; to the body of the loop be redundant or add no additional value?
Right!
Bro!!!!!! your too good
Excellent Explaination
Why out put is hello 6
I missed class the day we went over this, and was totally confused about how this worked... now that I see it, I feel stupid for not understanding it sooner
I don;t know what to say. Very helpful indeed
Are there power point documents for subscribers on the site ?
nice❤️👍
can we d use float/double variable for looping purpose ???
double[] inches = {1.3,4.2,59.4, 112.9, 88.7};
float[] bigNumbers = {1000000000,2000000000, 300000000, 400000000};
System.out.printf("%4s%15s", "Index", "Value");
System.out.println();
for (int i = 0; i < bigNumbers.length;i++){
System.out.printf("%4s%16s
", (i+1), bigNumbers[i]);
}
for (int i = 0; i < inches.length;i++){
System.out.printf("%4s%16s
", (i+1), inches[i]);
}
Sir..
I'm doing BTech form electronic and communications branch but I interested in android devlopment that's why I'm learning java but I confused that what i learn first opps or core java ,and i have no programing experience instead of c language .
Plz sugges me .. and also sugges if you have any playlist related to opps or core .
And I'm watching your java playlist sir your teaching style is very osm And you are great sir 💝😍
If you are good at C, Java will be very easy for you. Learn Core Java first, like Primitives, Objects, Classess, Inheritance, Data structures, and those stuff. It will take you couple weeks since you know C. If you have any challenging questions about Java, please post, I might be able to help you.
If you want to learn Java ..First u need to learn the OOP's and then go for core Java ..it might be easy for u if u have knowledge in C..
7:25 i have a problem like if i want to print "Hello" say, 15 times how do i do it?
i wrote the code as: for( ; i
if you are using a condition then the variable should be initialized first.
Data type variable:type
++i != i++ my friend, in Java the precedence starts from left to right, so ++i means that i will be incremented by one and then used in the equation, i++ means you'll use the old i first in the equation then get it incremented by 1.
True but that's in an equation. If you're looking at i++ as itself it is the same as ++i, both will increase i by 1. In an equation, it matters because the i value used might be different.
@@LearnJava_Programming So you are proving what I was saying, they are not the same.
@@Altair.1187 true but only in an equation.
ur explanation is Fucking incredible
Superb..
Good 👌
Very good tutorial. but the output "Hello" will be printed five times not six times.
Yes hello will be printed five times, but it was print ( " hello " + I) where I = 6. It's because when it reached 6 in the loop, the loop stopped printing stuff
Make a video for each loop
Yes, for each loop is shorter form of the long for loop. Here is an example
String[] names = {"Bob", "John", "Adam", "Sarah"};
// long for loop
System.out.printf("%4s%15s
", "Index", "Name");
System.out.println();
for (int i = 0; i < names.length;i++){
System.out.printf("%4s%15s
", i, names[i]);
}
// For each form
for (String name : names ){
System.out.println("Name: " + name);
}
Idk how to say Thank You, but thanks well explained
Thanks, but I have exam on April 1, please download videos before it🥺
What problems do you have?
The Blind Programmer I already done with exams, passed from all, thanks for asking🥳
@@normangasan Good to hear, I just wanted to help. If you have any Java-related question/challange feel free to ask.
can you please make a video on "for each " loop.....????
Yes, for each loop is shorter form of the long for loop. Here is an example
String[] names = {"Bob", "John", "Adam", "Sarah"};
// long for loop
System.out.printf("%4s%15s
", "Index", "Name");
System.out.println();
for (int i = 0; i < names.length;i++){
System.out.printf("%4s%15s
", i, names[i]);
}
// For each form
for (String name : names ){
System.out.println("Name: " + name);
}
You can find it on arfisto! Wish you happy learning
@@theblindprogrammercan u say which programming language u have used here ?
In java
for(int i = 0 ; i
@@melitajm4286 I used Java, which language do you want me to write?
Gotta love that heavy Arabic accent.
Better then Cydeo...
We open braces😬
Java will be free.