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

Thread: Need Help?!

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Need Help?!

    Hello all!
    Im doing java for the first time at uni this year, and im not gonna lie, its kicking my ass.
    I need some help and advice for an assignment:

    The program asks the user for the name of a file containing encrypted text (this i already have saved.) It then
    reads the file and counts the number of times each letter appears in the text, and
    the number of times each letter appears as the first letter of a word in the text (the
    first letter on a line is counted as the first letter of a word, and any other letter in the
    text where the previous character is not a letter counts as the first letter of a word.
    For these counts, the case of the letters is ignored, so ‘a’ is counted as the same as
    ‘A’.
    The program then lists out for each letter the number of times it appears (the
    frequency count) and the percentage this number is of all the letters in the text. It
    then also lists out for each letter the number of times it appears in the text as the
    first letter.

    Is it me or that quite tough? haha
    :/

    Regards

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need Help?!

    How about editting your post and making it readable. All those short lines makes it hard to read. Get rid of the extra line end characters.

    Also post the code that you are working on.
    If you don't understand my answer, don't ignore it, ask a question.

Tags for this Thread