Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package kademika;
- public class FrameTwoFive {
- public static void main(String[] args) {
- System.out.println(oldEnough(22));
- }
- static boolean oldEnough(int age) {
- if (age >= 21) {
- return age >= 21;
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement