How do I print out something in an IF statment?

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-java/projects/loan-payment-calculator

<In what way does your code behave incorrectly? Include ALL error messages.>

```

public class CarLoan {
public static void main(String args) {

int carLoan = 10000;
int loanLength = 3;
int intrestRate = 5;
int downPayment = 2000;

if (loanLength <= 0 || intrestRate <= 0);



}

}

<do not remove the three backticks above>

Here’s some basic syntax:

if(condition==true){
  System.out.println("The condition is true!");
}

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.