Something
public text v1 · immutableimport java.util.Scanner;
class scannerx {
public static void main(String args[]){
Scanner work = new Scanner(System.in);
double i;
String input;
double x = 2.2;
double y;
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");
}
}
}