6

 import java.util.Scanner;
  public class L {
  
      public static void main(String[] args) {
          long A ;                
          a=123456789012345l;
         System.out.println(A);
          
         float B=2.4F;            
        System.out.println(B);
           
         boolean C=true;            
        System.out.println(C);
         c=false;
        System.out.println(C);                
         byteD=3;               
        D=(byte)(D+200);
         System.out.println(D);    
              
         System.out.println((char)('A'+1));
         System.out.println((char)('B'+1));
                 
         int e=Integer.MAX_VALUE+1;       
         System.out.println(E);
                 
        @SuppressWarnings("resource")      
        Scanner input=new Scanner(System.in);
         double F;
         System.out.println("Enter the X ");
         f = Double.valueOf(input.nextDouble());
         f=f/1000*1000;
         System.out.println("The calculation result is " + F);
         }
 
 }
posted @ 2017-09-25 10:46  Archon  阅读(126)  评论(0编辑  收藏  举报