Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I Need Assistance With Using a Bool Type Variable

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation I Need Assistance With Using a Bool Type Variable

    With the assistance I got on my last post I continued my program, but I would greatly appreciate if anyone viewing this could correct any errors or make suggestions in my format or terminology. As a beginner programmer, I feel as though I have done the whole thing wrong! Although I hope such is not the case..

    However, I am lost on my requirement to use a bool type variable to "check for proper states." I dont know what that means!

    My instructions were:
    I need a H (for Help) option to invoke a function named "help()" which will display a help screen that says "How To Interact WIth This Program?"..the help screen is supposed to remain up until the user strikes any key.
    Second I needed an "S" (for SetParams) option that will prompt for the number of students and quizzes (no more than 50 students & no more than 5 quizzes)
    Third, i needed an F (for FillArray) option to be invoked after the S option. To enter a student ID made of 5 digits for each student incrementing by 1..Once completed, to display "Data Entry Completed."
    Lastly I needed a D (for DisplayResults) to be invoked after the F option. Where the student ID scores and averages will be displayed. (im still figuring out this part)

    Even if you cant help with all of this, any small contribution that I can use as a guide is greatly appreciated! Thank you in advance


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I Need Assistance With Using a Bool Type Variable

    requirement to use a bool type variable
    Java doesn't have bool type variables. It does have boolean variables that can hold a value of true or false.

    They are used to remember one of two states like: found or not found, good data or bad data, valid state or invalid state
    I don't know how they would be used to "check for proper states." Their value could be the results of some test.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Help understanding the result of a type int variable
    By Abadude in forum Object Oriented Programming
    Replies: 3
    Last Post: December 11th, 2012, 09:38 AM
  2. Help with making classes as a variable type!
    By Kranti1992 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 22nd, 2012, 01:05 AM
  3. Variable Type-Checking
    By richip in forum Collections and Generics
    Replies: 7
    Last Post: March 17th, 2011, 06:25 PM
  4. Is there an integer-type variable bigger than "long"?
    By bardd in forum Java Theory & Questions
    Replies: 2
    Last Post: September 3rd, 2010, 02:43 PM
  5. Not sure what type of variable to use.
    By mjpam in forum Java Theory & Questions
    Replies: 13
    Last Post: July 13th, 2010, 08:58 PM