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

Recommended Answers

All 6 Replies

what is the html code for?

There is no html its by accident

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.