Week7 Calculator

65 views
Skip to first unread message

jpsal...@gmail.com

unread,
Dec 5, 2015, 2:50:15 PM12/5/15
to mooc.fi
Hi,

I'm having problems with week 7 exercise 3. Calculator

The calculator works fine for me but TMC gives several errors:
new Calculator.start(); causes an exception with user input sum<enter>1<enter>2<enter>product<enter>2<enter>3<enter>difference<enter>4<enter>2<enter>sum<enter>3<enter>3<enter>end<enter>, additional information: java.lang.reflect.InvocationTargetException

I have tried inputs my self but I don't get any errors.


Best regards
Jukka-Pekka

Supported languages are English and Finnish

Please use our build in TMC Pastebin when asking questions related to your code  
 
TMC Plugin has built-in code sharing feature. 
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.  

You may use our web interface to share code snippets: http://paste.mooc.fi

jpsal...@gmail.com

unread,
Dec 6, 2015, 5:08:56 PM12/6/15
to mooc.fi, jpsal...@gmail.com
Never mind. I noticed that the Calculator constructor was missing, and I created the new Readers in each method. I got it working.
Reply all
Reply to author
Forward
0 new messages