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

Thread: java

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

    Question java

    1)Input a paragraph containing n no.of sentences where 1<=n<4. The words are to be separated with a blank space and are in uppercase. A sentence maybe terminated either with a fullstop or a question mark only.Any other character maybe ignored.
    perform the folowing operations:-
    i) Accept the no.of sentences if the no.of sentences exceeds the limit an appropriate error message must be displayed.
    ii) Find the no.of words in the whole paragraph.
    iii) Display the words in ascending order of their frequency. Words with the same frequency may appear n any order.
    For example: Input: Enter no.of sentences
    1
    Enter sentence
    To be or to be not.
    Output: Total no.of words
    6
    or-1
    not-1
    to-2
    be-2.


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    646
    My Mood
    Sleepy
    Thanks
    10
    Thanked 95 Times in 88 Posts

    Default Re: java

    What have you tried? - Matt Gemmell

    Nobody will do it for you. Post you best attempt and ask questions. Dumping your assignment without even asking a question is plain rude.

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java

    oopsss.... am sry... i ll post my soltn....

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    646
    My Mood
    Sleepy
    Thanks
    10
    Thanked 95 Times in 88 Posts

    Default Re: java

    And this is not a SMS! Spell out words, you can use more than 160 characters per post.

  5. #5
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: java

    Thread moved from "Member introductions".
    Please refer to the Announcements page for useful forum tips.
    Thanks for posting your assignment on the forum, new members (and I) enjoy new ideas.
    If you have a question over the assignment be sure to the question with the instructions.