I am a new Java learner, and I have come to a problem regarding the while loop.
When I type the while(name.isBlank()) {
I get the followiing error message:
The method isBlank() is undefined for the type String"
I tried to change the compiler to: 1.6, 1.7 , 1.8, and I also did the JRE removal from build Path and readd it to library.
How do i solve this issue please. Any help would be greatly appreciated. thank you in advance.
R.Bazsi
Here is what i tried to run:
Scanner scanner = new Scanner(System.in);
String name = " ";
while(name.isBlank()) {
System.out.println("you are here");