Friday, May 6, 2016

My Java Learning

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package my.first.java.program;

import java.math.BigInteger;
import java.util.Scanner;
import java.math.*;
/**
 *
 * @author A K Tamzid
 */
public class MyFirstJavaProgram {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       
      BigInteger a,b,c;
     
      Scanner sc= new Scanner(System.in);
      a=sc.nextBigInteger();
      //b=sc.nextBigInteger();
      //a= new BigInteger("1");
      b= new BigInteger("2");
      c=a.mod(b);
      System.out.println(c);
      if(c==a)
          System.out.println("Yes");
       


    }
   
}

No comments:

Post a Comment

Speedup Android Studio

Go to Help ->Edit Custom VM Options, and chnge this 4 setting. After that close your Android Studio. This settings are for 8gb of ram pc...