Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uzduotys;
- public class KetvirtaUzduotis
- {
- public String atvaizduotiOroIkonas(boolean arDebesuota, boolean arLija, boolean arZaibuoja, boolean arDiena)
- {
- String atsakymas = "";
- if (arDiena)
- {
- atsakymas += "diena";
- }
- else
- {
- atsakymas += "naktis";
- }
- atsakymas += " ";
- if (arDebesuota)
- {
- if (arLija)
- {
- if (arZaibuoja)
- {
- atsakymas += "žaibas";
- }
- }
- else
- {
- atsakymas += "debesys";
- }
- }
- else
- {
- atsakymas += "šviesa";
- }
- return atsakymas;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement