Java Programming Tutorial 30 - Variable Scope with Nested Control Flow

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Day 2 🙌 Done 30 out of 100, 70 more to go let's go! 🔥

hihellookay
Автор

I love your videos and I watched the entire series in just 2 days. I would be very happy if you could continue the series.

philippsyt
Автор

This video was actually super useful in helping me understand why my programs weren't doing what I wanted them to do. In my Comp Sci class, we didn't go over scope, the professor, just kinda assumed it'd make sense when we write things (and for the most part it did) but when it came time to start writing multi-line, multi-method programs, and I wanted to declare arrays here or initialize a variable there, even though I'd get an error involving scope, I wasn't quite sure WHY I was getting it and it was making me a bit frustrated...this video really helped me understand lol. So THANK YOU!!

iheartTH
Автор

Please make this type of series for selenium

Puzaah
Автор

You should've done j instead of pizza...but that's OK, you can use any variable unless they're the same variable in the same scope.

sharah
Автор

?? cant you just NOT re-declare the 'i' variable in the for loop, just re-assign 'i' to the required value again. i.e... instead of for(int i = 9; i >= 0; i--)
just do for(i = 9; i >= 0; i--)?
Simple example:-
int i = 0;
while(i < 10){
System.out.println(i);
i++;
}

for(i = 0; i < 10; i++)
System.out.println(i);

rodwynnejones