Advertisement
Guest User

ReciprocalConstructor

a guest
Jan 24th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. public class Test {
  2.  
  3.         private static final int    FIXEDVALUE = 100;
  4.  
  5.         public Test () {
  6.             this(FIXEDVALUE);
  7.         }
  8.  
  9.         public Test (int fixedValue) {
  10.             System.out.format("FIXEDVALUE = %d\n", FIXEDVALUE);
  11.         }
  12.  
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement