Student

82 views
Skip to first unread message

caseysc...@gmail.com

unread,
Apr 5, 2015, 7:31:07 PM4/5/15
to moo...@googlegroups.com
Hi,

I'm having problems with week 5 exercise 88.
I'm getting the following error.
With input "Martti Ahtisaari", "33442111", ""  the list of students was not printed correctly 
Ensure that your main program works according to the assignment definition
Output was: name: 
studentnumber: 
The link to my work is here: PASTE TMC PASTEBIN LINK HERE


Best regards


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

Jarmo Isotalo

unread,
Apr 6, 2015, 3:51:35 PM4/6/15
to caseysc...@gmail.com, moo...@googlegroups.com
My first guess would be the use of Scanner.next(); It probably appears to be working when it gets clean input from your terminal, but probably it doesn't read everything as intended.

Also what exactly is the word variable you are using; it really might be dropping the name on each iteration after the first one.

--
http://mooc.fi
---
You received this message because you are subscribed to the Google Groups "mooc.fi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moocfi+un...@googlegroups.com.
To post to this group, send email to moo...@googlegroups.com.
Visit this group at http://groups.google.com/group/moocfi.
To view this discussion on the web visit https://groups.google.com/d/msgid/moocfi/034fccb3-8be8-4447-adf6-c52c0ce3931f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages