Learn Java while loops in 12 minutes! ♾️ @BroCodez
Learn Java while loops in 12 minutes! ♾️  @BroCodez
Uploaded December 2024 | Updated September 2026, 1 week ago
#java #javatutorial #javacourse

00:00:00 introduction
00:01:40 example 1
00:02:45 infinite loop example
00:03:52 example 2
00:06:40 example 3
00:08:53 do while loop
00:09:53 example 4

import java.util.Scanner;

public class Main {
public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);

// EXAMPLE 1

String name = "";

while(name.isEmpty()){
System.out.print("Enter your name: ");
name = scanner.nextLine();
}

System.out.println("Hello " + name);

// EXAMPLE 2

String response = "";

while(!response.equals("Q")){
System.out.print("Press Q to quit: ");
response = scanner.next().toUpperCase();
}

System.out.println("You have quit");

scanner.close();
}
}
Learn Java while loops in 12 minutes! ♾️MongoDB indexes explainedArrays of structs are easy! 🗄️Generate random numbers in C! 🎲Learn hexadecimal in 0x7A secondsLets code a HANGMAN GAME in Python! 🕺Enter USER INPUT into an ARRAY! ➡️Matplotlib grid lines in 2 minutes! 🌐Selection in Pandas is easy! 🎯Convert decimal to octal EASY!Learn INTERFACES in 6 minutes! 📋Learn Matplotlib in 1 hour! 📊
Bro Code |

Learn Java while loops in 12 minutes! ♾️

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER