I am working on this very simple java problem which requires to print both the objects money and isTrue without skipping a line.
I have tried casting both objects to string but doesn't work. I know I could have two print statements but they would print on 2 differents lines. I need both to print as 9999.99false
class Main {
public static void main(String[] args) {
double money = 9999.99;
boolean isTrue = false;
System.out.println(money + isTrue);
}
}
The output expected is 9999.99false
Thanks!