Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Saloon Keeper
Posts: 7003
110
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!