Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String getResult()
- {
- if (calcSize() > 100 && weight > 70)
- System.out.println("Package is too large and too heavy");
- if (calcSize() <= 100 && weight <= 70)
- System.out.println("Package is acceptable");
- if (calcSize() > 100 && weight <= 70)
- System.out.println("Package is too large");
- if (calcSize() <= 100 && weight > 70)
- System.out.println("Package is too heavy");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement