Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class BankAccount{
  2. public static int counting(){
  3. int count=0;
  4. UserAccount[] arr=new UserAccount[2];
  5. arr[0]=new UserAccount(2.3):
  6. arr[1]=new UserAccount(1.3):
  7. for(UserAccount i : arr){
  8. if(UserAccount.getPrice()>100)
  9. count++;
  10. }
  11. else if(){
  12.  
  13. //Това е само за пример
  14.  
  15. }
  16. //Това вместо void
  17. return count;
  18.  
  19. }
  20.  
  21.  
  22. }
  23.  
  24. public class App{
  25. public static void main(String[]args){
  26. BankAccount.counting();
  27.  
  28. }
  29.  
  30.  
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement