Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uzduotys;
- public class AntraUzduotis
- {
- public String patikrintiAmziu(int amzius)
- {
- if (amzius < 0)
- {
- return "Netinkamas amžius";
- }
- else
- {
- if (amzius <= 18)
- {
- return "Per mažas amžius";
- }
- else
- {
- if (amzius <= 120)
- {
- return "Galite registruotis";
- }
- else
- {
- return "Netinkamas amžius";
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement