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.println("Enter your name: ");
name = scanner.nextLine();
}
System.out.println("Hello "+name);
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)