I'm using Eclipse to run the following simple program ( test scanner )
The inputs are mentioned in the Run Configuration -> Arguments section as 

```
23 98 

```

The program does not terminate - hangs without producing a + b 

```
import java.io.*;
import java.util.*;

public class InputExpt
{
   public static void main(String[] args)
   {
      Scanner in = new Scanner(System.in);
      //PrintWriter out = new PrintWriter(System.out);

      int a = in.nextInt();
      int b = in.nextInt();
      in.close();
      System.out.println(a+b);
   }
}

```

The program works when I dont use the Scanner utility to read inputs. Using lines below displays 121(a+b)

```
     int a = Integer.parseInt(args[0]); // in.nextInt();
     int b = Integer.parseInt(args[1]); //in.nextInt();

```

What is the issue here ?