blob: d4d57eabdc20de73cf922d72f77046dda3e64d2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import java.io.*;
public class Task {
public static void main(String[] arguments) {
var coworker = new Coworker();
coworker.firstName = "Sebastian";
coworker.lastName = "Mayer";
coworker.number = "1234";
coworker.salary = 3000;
System.out.print("Vorname: ");
System.out.println(coworker.firstName);
System.out.print("Nachname: ");
System.out.println(coworker.lastName);
System.out.print("Personalnummer: ");
System.out.println(coworker.number);
System.out.print("Monatslohn: ");
System.out.println(coworker.salary);
coworker.increase(5);
System.out.print("Monatslohn erhöht um 5%: ");
System.out.println(coworker.salary);
}
}
|