I'm not sure i follow what your trying when i was at the beginner stage they taught me a class that could be used to generate input. i see that your program is trying to add three integers
the package is called
hsa.Stdin
to add integers call for input for the three use "int value = Stdin.readInt();
import hsa.Stdin;
public class Junk
{
public static void main (String[] args)
{
int a, b, c;
System.out.print ("A: ");
a = Stdin.readInt ();
System.out.print ("\nB: ");
b = Stdin.readInt ();
System.out.println ();
c = a + b;
System.out.println ("Answer = " + c);
}
}
this was what i was tought and feel that this is the easiest way to have it done