AssignmentOperator

From ggc

Jump to: navigation, search

01 import java.util.*;
02 /**
03  * All about my application here.
04  @author Jam Jenkins
05  */
06 public class AssignmentOperator
07 {
08   public static void main(String[] args)
09   {
10     int x=8;
11     System.out.println("x is "+x);
12     x=x+2;
13     System.out.println("x is "+x);
14     x++;//x=x+1;
15     System.out.println("x is "+x);
16     System.out.println("What is your first name?");
17     Scanner scanner=new Scanner(System.in);
18     String first=scanner.next();
19     int y=first.length();
20     System.out.println("Your first name has "+y+" characters in it.");
21   }
22 }


Download/View AssignmentOperator.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter