Skip to content

Commit 3b7a1d5

Browse files
committed
Aktualizacja3
1 parent c8c4b64 commit 3b7a1d5

File tree

5 files changed

+78
-37
lines changed

5 files changed

+78
-37
lines changed

.idea/workspace.xml

Lines changed: 53 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
119 Bytes
Binary file not shown.
1.11 KB
Binary file not shown.

src/jp/JP4.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ public static void main(String[] args) {
1414
System.out.println(ala2[5]);
1515
System.out.println(ala2[6]);
1616

17+
for(String ala3 : ala2){
18+
System.out.println(ala3);
19+
}
1720
}
1821

1922
}

src/jp/JP5.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package jp;
2+
3+
public class JP5 {
4+
public static void main(String[] args) {
5+
//Pierwsze prawo de morgana
6+
boolean p, q ;
7+
p = true;
8+
q = true;
9+
System.out.println(!(p && q) == ((!p) || (!q)));
10+
p = true;
11+
q = false;
12+
System.out.println(!(p && q) == ((!p) || (!q)));
13+
p = false;
14+
q = true;
15+
System.out.println(!(p && q) == ((!p) || (!q)));
16+
p = false;
17+
q = false;
18+
System.out.println(!(p && q) == ((!p) || (!q)));
19+
}
20+
21+
22+
}

0 commit comments

Comments
 (0)