thenewboston

Java Programming Tutorial - 9 - Increment Operators

Aug 22nd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class apples{
  4.    public static void main(String args[]){
  5.       Scanner bucky = new Scanner(System.in);
  6.      
  7.       int tuna = 5;
  8.       int bass = 18;
  9.      
  10.       System.out.println(tuna++);
  11.       System.out.println(tuna);      
  12.  
  13.    }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment