Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unexpected Type Error Code, can't seem to figure it out

 
Peter Arcuri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone, working on some homework here and I think I've done a pretty good job with this code but I seem to be running into an error near the end. I'm pretty new to this so bare with me, I'm going to copy my code into the thread here. Any help is appreciated, thanks!



My error looks like this: ConstructingaGUI.java:103: error: unexpected type
averageTF.setText(""=twoDigits.format(ave));
^
required: variable
found: value
1 error

 
Stephan van Hulst
Bartender
Posts: 6589
86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Peter, welcome to CodeRanch!

You might want to review what the = operator does.
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!