How would I put this into one program?

These are the directions:
Write a method that takes two parameters. If the first parameter is equal to second parameter. Multiply both and print result.

If the first parameter is less than the second parameter, add the two and print the result 10 times.

If the first parameter is greater than the second parameter, subtract the first parameter from the second.

This is what I've got:

public class IfHomework {

public static void ifHomework(int first, int second)
{

System.out.println("first = " + first + " second = " + second);

System.out.println(first*second);
System.out.println(first+second);
System.out.println(second-first);


}
public static void main(String [] args){
int firstNumber =4;
int secondNumber =6;

{

ifHomework(firstNumber, secondNumber);

int x = 12;
int y = 12;
(x, y);

}

}

}

I'm new tho this I'm not sure what to do.

To put the instructions into a single program, you can follow these steps:

1. Create a Java class named "IfHomework" and make it public.
2. Define a static method called "ifHomework" that takes two parameters of type int.
3. Inside the "ifHomework" method, you can use if-else statements to implement the required logic based on the provided instructions.
4. For the first condition, check if the first parameter is equal to the second parameter. If true, multiply both parameters and print the result.
5. For the second condition, check if the first parameter is less than the second parameter. If true, add the two parameters and print the result ten times.
6. For the third condition, check if the first parameter is greater than the second parameter. If true, subtract the first parameter from the second and print the result.
7. In the main() method, declare two integer variables and assign them suitable values.
8. Call the ifHomework method passing the two variables as arguments to execute the logic inside it.

Here's an updated version of your code with the corrections:

```java
public class IfHomework {

public static void ifHomework(int first, int second) {
System.out.println("first = " + first + ", second = " + second);

if (first == second) {
System.out.println(first * second);
} else if (first < second) {
for (int i = 0; i < 10; i++) {
System.out.println(first + second);
}
} else {
System.out.println(second - first);
}
}

public static void main(String[] args) {
int firstNumber = 4;
int secondNumber = 6;

ifHomework(firstNumber, secondNumber);

int x = 12;
int y = 12;
ifHomework(x, y);
}

}
```

With these modifications, the program will compile and run correctly, executing the instructions mentioned in your question.