Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class example {
- public static void main(String[] args) {
- int x = Integer.parseInt(args[0]);
- int y = Integer.parseInt(args[1]);
- if (x==y) {
- if (x >25) {
- System.out.println("x is large, and so is y");
- }
- else {
- if (x > 15){
- System.out.println("x still somewhat large");
- }
- else {
- if (x >= 1) {
- System.out.println("x positive at least");
- }
- else {
- if (x == 0) {
- System.out.println("x is 0");
- }
- else {
- if (x < 0) {
- System.out.println("x is negitive");
- }
- else {
- System.out.println("x is not a number");
- }
- }
- }
- }
- }
- }
- else {
- System.out.println("x is not equal to y");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment