Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement