I have here a code that should print the sum and difference of two complex numbers. The instructions given are: make the methods add, subtract, and
add
subtract
Perhaps this is not what you're looking for, but to make the number be printed isn't enough to make something like this in your print method?
System.out.print("The number is: " +real +"+i" +imag);