Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 2nd, 2012  |  syntax: None  |  size: 0.51 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. public class enterprise {
  3.         static String Name;
  4.         static int index;
  5.         static float value;
  6.         static float amount;
  7.  
  8.         public enterprise(int i) {
  9.                 index = i;
  10.                 value = 10F;
  11.                 amount = 10000;
  12.         }
  13.         public static void main(String[] args) {
  14.                 // TODO Auto-generated method stub
  15.  
  16.         }
  17.         public void setName(String x){
  18.                 Name = x;
  19.         }
  20.  
  21.         public void changeAmount(int x){
  22.                 amount = amount + x;
  23.         }
  24.         public float getValue(){
  25.                 return value;
  26.         }
  27.         public void changeValue(float x){
  28.                 value = (value * x)/100;
  29.         }
  30.  
  31.  
  32. }
clone this paste RAW Paste Data