I know there is a similar question already asked, so let me apologize in advance. I am new to Java and before this, my only programming experience is QBasic. 

So here is my dilemma: I need to accept 2 integer values and I would like to be able to enter both values on the same line, separated by a space (IE: Enter "45 60" and have x=45 and y=60).

From what I have seen, people are suggesting arrays, but I am weeks away from learning those... is there a simpler way to do it? We have gone over "for", "if/else", and "while" loops if that helps. I don't have any example code because I don't know where to start with this one. 

I have the program working with 2 separate calls to the scanner... just trying to shorten/ clean up the code. Any ideas??

Thanks!

//UPDATE:

Here is the sample so far. As I post this, I am also reading the scanner doc.
And I don't expect you guys to do my homework for me. I'd never learn that way.
The println at the end it my way of checking that the values were stored properly.

```
public static void homework(){
    Scanner hwScan = new Scanner(System.in);   
    System.out.println("Homework and Exam 1 weights? ");
    int hwWeight = hwScan.nextInt();
    int ex1Weight=hwScan.nextInt();
    System.out.println(hwWeight+"   "+ex1Weight); 
}

```