I would like to know why I can't return two variables in one method. I can pass only one variable.

Eg;

protected int getData(){
System.out.print("Enter num1");
Scanner...