Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. /**
  2.  * Created by
  3.  *
  4.  * @autor: Brent Lucas
  5.  * @version: 1.0 20/10/2014 9:43
  6.  */
  7. public class RectangleDemo {
  8.     public static void main(String[] args) {
  9.  
  10.         /*Rectangle rechthoek = new Rectangle();
  11.  
  12.         rechthoek.printValues();
  13.  
  14.         rechthoek.setHeight(100);
  15.         rechthoek.setWidth(50);
  16.         rechthoek.setPosition(10, 5);
  17.  
  18.         System.out.println("");
  19.         rechthoek.printValues();*/
  20.  
  21.         System.out.println(Rectangle.getANGLES());
  22.  
  23.         for (int i = 0; i < 10; i++){
  24.             if (i%2 == 0){
  25.                 Rectangle rechthoekZonderHeight = new Rectangle();
  26.             }
  27.             else {
  28.                 Rectangle rechthoekMetHeight = new Rectangle();
  29.             }
  30.         }
  31.         System.out.println(Rectangle.getNUMBEROFINSTANCES());
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement