eduardD
5 years ago
3 changed files with 61 additions and 24 deletions
-
36Budget Projekt/src/MeinBudgetView/Calculations.java
-
15Budget Projekt/src/MeinBudgetView/MeinGui.java
-
34Budget Projekt/src/MeinBudgetView/MyTest.java
@ -0,0 +1,36 @@ |
|||||
|
package MeinBudgetView; |
||||
|
|
||||
|
import java.util.*; |
||||
|
|
||||
|
public class Calculations { |
||||
|
|
||||
|
private static int budget; |
||||
|
ArrayList<Integer> all_expenses = new ArrayList<>(); |
||||
|
private static int expense; |
||||
|
private static int balance; |
||||
|
|
||||
|
public static int getBudget() { |
||||
|
return budget; |
||||
|
} |
||||
|
|
||||
|
public static void setBudget(int budgetEingabe) { |
||||
|
budget = budgetEingabe; |
||||
|
} |
||||
|
|
||||
|
public static int getExpense() { |
||||
|
return expense; |
||||
|
} |
||||
|
|
||||
|
public static void setExpense(int expenseEingabe) { |
||||
|
expense = expenseEingabe; |
||||
|
} |
||||
|
|
||||
|
public static int getBalance() { |
||||
|
return balance; |
||||
|
} |
||||
|
|
||||
|
public static void setBalance(int balanceEingabe) { |
||||
|
balance = balanceEingabe; |
||||
|
} |
||||
|
|
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue