Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement