r/javahelp • • May 28 '22

I need help.

am trying to run an equation in java, how do I display y=answer?

0 Upvotes

6 comments sorted by

View all comments

3

u/pnerd314 May 28 '22 edited May 28 '22
// assuming the variable named 'answer' holds the value of 'y'
System.out.println ("y = " + answer);