title: How to read comma separated integer inputs in java
body: <pre><code>import java.io.*;
  import java.util.*;
  class usingDelimiters
  {
      public static void main(String args[])
      {
          Scanner dis=new Scanner(System.in);
          int a,b,c;
          a=dis.nextInt();
          b=dis.nextInt();
          c=dis.nextInt();
          System.out.println("a="+a);
          System.out.println("b="+b);
          System.out.println("c="+c);
      }
  }
  </code></pre>
  
  <p>This program is working fine when my input is 1 2 3 (separated by space)
  But, how to modify my program when my input is 1,2,3 (separated by commas)</p>