The Artima Developer Community
Sponsored Link

Java Answers Forum
Help with an Array of strings

1 reply on 1 page. Most recent reply: Mar 14, 2002 1:34 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
JonnyB

Posts: 1
Nickname: jonnyb
Registered: Mar, 2002

Help with an Array of strings Posted: Mar 13, 2002 2:58 PM
Reply to this message Reply
Advertisement
Fairly new to java and I'm sure this will be strightforward to you experts??

I am writing a simple quiz applet which displays random questions that are held within an array of strings. The answers are also held within an array of strings.

What method is needed to access and evaluate the contents of the answers array (the string) against the users typed answer, before returning a correct or incorrect response.

Regards and thanks in advance for any help
JonnyB


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Help with an Array of strings Posted: Mar 14, 2002 1:34 PM
Reply to this message Reply
If you use multiple choice questions with answer responses A, B, C, or D
or lower case a, b, c, or d
then you will find that writing your program will be easier to grade.

Flat View: This topic has 1 reply on 1 page
Topic: Why arrays start with index 0 everywhere? Previous Topic   Next Topic Topic: Giving Applet AllPermisions

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use