tubeshowcase●1,190,518 videos♡ My collection 0
← Learn to Code

Learn to Code03:37

Java while loop 🔄

Bro Code ↗

From the creator

Java while loop #Java #while #loop import java.util.Scanner; public class Main { public static void main(String[] args) { // while loop = executes a block of code as long as a it's condition remains true Scanner scanner = new Scanner(System.in); String name = ""; while(name.isBlank()) { System.out.print("Enter your name: "); name = scanner.nextLine(); } System.out.println("Hello "+name); } }

Published 2020-10-19 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code