Saturday, March 29, 2014

Data types

/*Look at in this code.. You simply use the each data type value which you wants .Thats the beauty of  the java.Am still saying that i import the util.Scanner line because whenever you wants input you have to import this line*/
import java.util.Scanner;
class main {
public static void main(String args[]) {
   
             
     System.out.println("Enter the int values");            
      Scanner var  = new Scanner(System.in);
      System.out.println(var.nextLine());
      System.out.println("Enter the float values");            
      Scanner var2  = new Scanner(System.in);
      System.out.println(var2.nextLine());
      System.out.println("Enter the string values");            
      Scanner var3  = new Scanner(System.in);
      System.out.println(var3.nextLine());
 }
}

/*if you guyz any queries about anything which we studied yet , Ask me
 Follow me on :
   www.facebook.com/arslan.aliawan
     @arslanaliawan2   (twitter) 
*/

No comments:

Post a Comment