i'm getting WA, n' have tried almst evrythng
this is what i'm doing

I) i count the number of characters in either case and underscores
II) den i go for 5 cases

a--> if all are small , i print the string as it is
b--> if Ist character of string is '_' or capital, i print error
c-> if small+underscore == length of string, i remove evry underscore and replace the next character by its capital form
d-> if small+capital == length, i remove capital letters n' replace by '_' and small form
e-> error

hav i missed ne case. i've also tried removing case b), but that is WA obviously!!

what do i do now??

  • created

    Jun '08
  • last reply

    Oct '08
  • 1

    reply

  • 200

    views

  • 2

    users

4 months later

Have you considered what happens in the word ends in an underscore?

Suggested Topics

Want to read more? Browse other topics in JAVA based languages or view latest topics.