| /home/chloe/ASDV-Java/lab6_ChloeFontenot/src/main/java/com/chloefontenot/lab6_chloefontenot/If2.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package com.chloefontenot.lab6_chloefontenot;
import java.util.Scanner;
public class If2 {
public static void main(String[] args) {
System.out.println("Please type a positive number: ");
if (new Scanner(System.in).nextInt() >= 0 )
System.out.println("Tou typed a positive number!");
}
}