Commit 00e7335b by Patryk Czarnik

szewc z orami

parent 10aa6c5f
...@@ -10,15 +10,27 @@ public class Szewc99 { ...@@ -10,15 +10,27 @@ public class Szewc99 {
int koniec = poczatek + czasNaprawy; int koniec = poczatek + czasNaprawy;
JOptionPane.showMessageDialog(null, "Buty będą do odbioru w dzień nr " + koniec); JOptionPane.showMessageDialog(null, "Buty będą do odbioru w dzień nr " + koniec);
if(koniec == 1 || koniec == 8) { if(koniec == 1 || koniec == 8 || koniec == 15) {
JOptionPane.showMessageDialog(null, "To jest poniedziałek"); JOptionPane.showMessageDialog(null, "To jest poniedziałek");
} }
if(koniec == 2 || koniec == 9) { if(koniec == 2 || koniec == 9 || koniec == 16) {
JOptionPane.showMessageDialog(null, "To jest wtorek"); JOptionPane.showMessageDialog(null, "To jest wtorek");
} }
if(koniec == 3 || koniec == 10) { if(koniec == 3 || koniec == 10 || koniec == 17) {
JOptionPane.showMessageDialog(null, "To jest środa"); JOptionPane.showMessageDialog(null, "To jest środa");
} }
if(koniec == 4 || koniec == 11 || koniec == 18) {
JOptionPane.showMessageDialog(null, "To jest czwartek");
}
if(koniec == 5 || koniec == 12 || koniec == 19) {
JOptionPane.showMessageDialog(null, "To jest piątek");
}
if(koniec == 6 || koniec == 13 || koniec == 20) {
JOptionPane.showMessageDialog(null, "To jest sobota");
}
if(koniec == 7 || koniec == 14 || koniec == 21) {
JOptionPane.showMessageDialog(null, "To jest niedziela");
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment