Java Quiz Tutorial




How to make a Java Quiz! Source Code http://pastebin.com/ZKtrMYen Thanks for watching Comment or Message me for any questions! I AM NOT A PRO 😛 —————- EDIT: I was far younger…

source

Your reaction?
Cute Cute
0
Cute
Fail Fail
0
Fail
Geeky Geeky
0
Geeky
Lol Lol
0
Lol
Love Love
0
Love
Omg Omg
0
Omg
Win Win
0
Win
Wtf Wtf
0
Wtf

Comments 20

  1. Really cool
    But isn't there a way to make it look nice? Like… Putting some Check Dots or Check Box, and make it look like normal, not java font, and perhaps hide the codes on the background? lol. I know I am asking for things possibly beyond Java capabilities, maybe by using another program combines with Java which will make it even more complex and make me want to not do all of that stuff lol.
    I am just trying to explore ways to actually test myself and learn, don't want to keep printing pages with multiple choice questions then hiding the correct answers from my eyes lmao but so far I guess I am going to have to keep using the same method…

  2. A little tip from a beginner here. Make 2 more classes, 1 alternatives and 2 for question. In 1 make 1 arraylist for each question then in the question class, make a collection of strings with the question then use a simple BlaBlaBla.print(); code to print string. Then for the alternatives, use a simple for each loop for(string whatevernameuwant : nameofarraylist)To print all the alternatives. That is way simpler and easier to read than bunch of code just pushed into the main class. Remeber to extend the main class to function with the other classes, or else u cant find a local variable for the "for each loop" and when u "question.print"
    Also remember to import the arraylist

  3. Ok kid listen,i luv ur enthusiasm,but are we serious about writing if sentences till our corps rot?No!So what you and the rest down need to do is to create a while loop…Now make the pc ask the user a question,look if its correct and pick another question…Now here are stuff you will need.
    1.basic knowledge of arrays
    2.To realise that pc follows from LINE TO LINE,and if it is on line 2 it doesnt know LINE 3 exists
    3.Knowing how to use Scanner and Random classes
    4.Knowing that when comparing strings there might be a retarded exception so its best when it doesnt work to replace == with .equals….Good luck have fun kids,Reptocrasher out.

Leave a Reply

Your email address will not be published. Required fields are marked *

log in

reset password

Back to
log in