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 4 of 4

Thread: Please help me.

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Please help me.

    Click the title of the assignment to see Due Date and submission features.

    Write a program that determines the number of Dots in an input line. Read in the line into a string. Next use the charAt( ) method in a loop to access the characters one by one.

    Your program should have comments towards the top of the program. Copy at least two sample runs and paste as a comment at the bottom of the program. At least one sample run would be a string that has a few blanks. At least one sample run would be a string that does not have any blanks.

    Use Assign5_{your last name} as the name of the program.

    Submit one file, the Java file only.

    As a general rule; no credit is given to work submitted late. If any consideration is given for partial credit; such decision will be made at the end of the semester; at the point in time when the Course Letter grade is determined.


    I don't know how to begin. I am taking this class online and I am so confused.

    --- Update ---

    Can someone help me please?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Please help me.

    What have you tried?
    Post your code and ask some specific questions about the problems you are having.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Please help me.

    The problem is, I have no idea where to start.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Please help me.

    Start by making a list of the steps the program needs to do.
    Then pick the first step and work on it.

    One of the steps I see is:
    Read in the line into a string.
    Start with that one. Define a class with a main() method and add code to the method that reads a line into a String. Then print out the contents of the String.
    When that works move to the next step in the list of steps you've made.

    The list can change as code is written and as you see more details about what the program needs to do.
    If you don't understand my answer, don't ignore it, ask a question.