0

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

Edited by Ezzaral: Fixed code tags

Attachments Varialbes.jpg 29.66 KB
5
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by zeroliken
0

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?

0

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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.