public class Sueldo { public static void main (String []args) throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader (System.in)); int num; System.out.println("Escribe tu sueldo: "); num= Integer.valueOf(in.readLine().trim()).intValue(); if (num>=1500) { System.out.println("Eres afortunado"); } else if (num>=1000) { System.out.println("Es aceptable"); } else if (num>=500) { System.out.println("No esta mal"); } else { System.out.println("Es poco..."); } } }