Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2010
    Posts
    35
    Rep Power
    0

    Default Some help with I/O, Your help is valuable!

    Okay guys...still getting new to this website and i am glad i can come here for some help...I really enjoy programming so far in java but i am stuck with my second assignment for my CS401 programming class at my university..
    My program: Create a Scrambler Game

    1) Has to have a Class player.java, Scramble.java (not at this point yet), and a main program.
    2) Private instance variables stored in the player.java class ( Name, Id, Rounds played, Rounds, Won)
    3) Methods to allow player to LOGIN ( name is passed into a method as parameter, if id is found...players logged in status will be marked as "true) REGISTER - test id against a file again and if it is not found it will be added to end of file.

    That is where i am struggling... idk how to make a text file check to see what the user puts in... i am new to making classes and methods too... please help!! here is my code below:
    Last edited by basketball8533; 10-12-2010 at 04:27 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,455
    Rep Power
    20

    Default

    Lesson: Basic I/O (The Java™ Tutorials > Essential Classes)

    I understand that you're new, but formatting your code similarly to the vast majority of members here will greatly improve your chances of getting help for this or any other question you may have. Please go through
    Code Conventions for the Java(TM) Programming Language: Contents

    db

  3. #3
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

    Default

    What have you tried?

  4. #4
    Join Date
    Oct 2010
    Posts
    35
    Rep Power
    0

    Default

    i have tried all of that code up above and i am unable to get it to work? i cannot pull items out of the class player.java... i do not know how to use the scanner method to verify that a user id is in the players.txt document

Similar Threads

  1. Replies: 2
    Last Post: 06-07-2011, 06:07 PM
  2. Replies: 0
    Last Post: 02-25-2010, 06:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •