Skip to content

Commit c8c4b64

Browse files
committed
Aktualizacja2
1 parent b303db7 commit c8c4b64

File tree

13 files changed

+210
-30
lines changed

13 files changed

+210
-30
lines changed

.idea/workspace.xml

Lines changed: 122 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-817 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.
815 Bytes
Binary file not shown.
1.09 KB
Binary file not shown.
1.36 KB
Binary file not shown.
771 Bytes
Binary file not shown.
590 Bytes
Binary file not shown.

src/jp1/JP1.java renamed to src/jp/JP1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package jp1;
1+
package jp;
22

33
public class JP1 {
44
public static void main(String[] args) {

src/jp/JP2.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package jp;
2+
3+
public class JP2 {
4+
5+
public static void main(String[] args) {
6+
//Declaracje
7+
String name, lastname, position ;
8+
final String PESEL;
9+
char gender;
10+
double salary_net;
11+
boolean isRetired;
12+
//przypisanie
13+
name = "Janusz";
14+
lastname = "Kowalski";
15+
position = "Bezrobotny";
16+
PESEL = "888888888";
17+
gender = 'M';
18+
salary_net = 10000;
19+
isRetired = false;
20+
21+
System.out.printf("%s | %10s | %10s | %12s | %2s | %8.2fzl | %b", name,lastname,position,PESEL,gender,salary_net,isRetired);
22+
23+
24+
25+
26+
27+
}
28+
}

0 commit comments

Comments
 (0)