hi

i cant get this to print out my result i get red lines underneath

operators1.setVal1(12); // sets val1 to 12
    operators2.setVal2(45); // sets val2 to 45
    operators2.setVal3(94); // sets val3 to 94
    operators2.Calculations1(); // Calculations method being called for equation 1
    operators2.Calculations2(); // calculations method being called for equation 2
    
    System.out.print("Result1:"); // Result1 being printed out without starting new line
    System.out.println(operators1.Result1); // result for the first equation
    System.out.print("Result2:"); // result2 being printed out without starting new line
    System.out.println(operators1.Result2);// result forthe second equation

what is the html code for?

ehm .. can you then print the correct code, in Code tags? it'll make it a lot easier to read. also, what is underlined red?

i get red lines underneath

The red lines are missing from your post.
Can you compile the source code, get the error messages and post them here?

Fixed the OP's code tags, but I can't help with the error messages.

get the error messages and post them here

either that or post all of the contents of the codes