
Untitled
By: a guest on
Aug 2nd, 2012 | syntax:
None | size: 0.51 KB | hits: 28 | expires: Never
public class enterprise {
static String Name;
static int index;
static float value;
static float amount;
public enterprise(int i) {
index = i;
value = 10F;
amount = 10000;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
}
public void setName(String x){
Name = x;
}
public void changeAmount(int x){
amount = amount + x;
}
public float getValue(){
return value;
}
public void changeValue(float x){
value = (value * x)/100;
}
}