I want that java check if the enter value is positive and repeat the request until is not true but I don't want that inside a while condition statement ( in brackets )
```
System.out.println("Enter positive value");
Scanner scanner = new Scanner(System.in);
scanner.nextInt();
while ( scanner.nextInt() <= 0) {//I what to request scanner in that section
System.out.println("Enter positive value");
}```
but if I write it like this
```
while ( scanner.nextInt() <= 0) {
scanner.nextInt()//it will ask the input 2 times to enter the value , so how i can prevent the executing in the scanner.nextInt() <= 0 in brackets
System.out.println("Enter positive value");
}