Well, now that you've shown your entire code - it seems that you're not actually calling the ImproperFraction
method anywhere.
You've got a static boolean variable called ImproperFraction
which you never actually set, so it's always false. And in the line System.out.println(ImproperFraction)
, you're printing that variable. But you never call the ImproperFraction
method, so the code that you've posted in the actual question (not the pastebin) never runs.