System.out.println("please type in a number"); i = work.nextInt(); System.out.println("please type in weight mesurement(lb or kg)"); input = work.nextLine(); if (input.equals("lb")) { y = i * x; System.out.println(y + "kg"); } else { y = i / x; System.out.println(y + "lb");