help a begginer :) [java string manipulation]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cursed_witch
    New Member
    • May 2006
    • 1

    #1

    help a begginer :) [java string manipulation]

    hi! am taking java class. we were asked to do a program that manipulates strings. am not good at it and i'm already failing in class. could anyone help me how to do it.
    this is an example on how the program would look like:

    input: cursed witch
    output: Witch, Cursed
    output: cURSED wITCH
    output: CW (initials)
    output: count is two.

    we were also asked to change the case of the first letter of every word to Ucase and the rest in Lcase.

    reverse the string input without using the reverse();

    for anybody who can help thanks!

    ahm... am using a jcreator, f dat makes any difference. :)
  • heat84
    New Member
    • Nov 2007
    • 118

    #2
    Can you try writing code and I can help you out from there .

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by cursed_witch
      hi! am taking java class. we were asked to do a program that manipulates strings. am not good at it and i'm already failing in class. could anyone help me how to do it.
      this is an example on how the program would look like:

      input: cursed witch
      output: Witch, Cursed
      output: cURSED wITCH
      output: CW (initials)
      output: count is two.

      we were also asked to change the case of the first letter of every word to Ucase and the rest in Lcase.

      reverse the string input without using the reverse();

      for anybody who can help thanks!

      ahm... am using a jcreator, f dat makes any difference. :)
      The API docs for the String and Character classes should not be neglected here.

      Comment

      Working...