If Statement If Statement example 1. public static void main(String[] args){ 2. int length = sc.nextInt(); 3. if(length<0) length = 0; 4. int price = length * 100; 5. } The length is converted to 0 only if length < 0