Условие логического печати Java
System.out.println(boolean_variable ? "print true": "print false");
javimu
System.out.println(boolean_variable ? "print true": "print false");