so i have this code
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
int inputAsInteger = Integer.parseInt(input);
Addition addition = new Addition(inputAsInteger);
addition.print();
}
}```
and this code in a different class
```public class Addition {
private int numberOne;
public Addition(int numberOne) {
this.numberOne = numberOne;
}
public int getNumber() {
return numberOne;
}
public void print() {
System.out.println(numberOne);
}
}```
i basically want to take what i put for the scanner in the main class and move it into a new class called subtraction for example