Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Rechnung;
- public class rechnung {
- private int mwst;
- private int vk;
- private int gesamt;
- public void setvariablen(int a, int b){
- mwst = a;
- vk = b;
- }
- public int getMwst() {
- return mwst;
- }
- public void setMwst(int mwst) {
- this.mwst = mwst;
- }
- public int getVk() {
- return vk;
- }
- public void setVk(int vk) {
- this.vk = vk;
- }
- public int getGesamt() {
- return gesamt;
- }
- public void setGesamt(int gesamt) {
- this.gesamt = gesamt;
- }
- void berechnung(){
- gesamt = vk * mwst / 100;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement