Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BankAccount{
- public static int counting(){
- int count=0;
- UserAccount[] arr=new UserAccount[2];
- arr[0]=new UserAccount(2.3):
- arr[1]=new UserAccount(1.3):
- for(UserAccount i : arr){
- if(UserAccount.getPrice()>100)
- count++;
- }
- else if(){
- //Това е само за пример
- }
- //Това вместо void
- return count;
- }
- }
- public class App{
- public static void main(String[]args){
- BankAccount.counting();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement