Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public String getResult()
  2. {
  3. if (calcSize() > 100 && weight > 70)
  4. System.out.println("Package is too large and too heavy");
  5. if (calcSize() <= 100 && weight <= 70)
  6. System.out.println("Package is acceptable");
  7. if (calcSize() > 100 && weight <= 70)
  8. System.out.println("Package is too large");
  9. if (calcSize() <= 100 && weight > 70)
  10. System.out.println("Package is too heavy");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement