This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Please help for program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Please help for program" Watch "Please help for program" New topic

Please help for program

Sachin Dare

Joined: May 04, 2004
Posts: 12
Hello All,

I want below output when the input String is "INDIA"

Please help me.

Thanks and Regards,
Sachin Dare.
John Jai

Joined: May 31, 2011
Posts: 1776
Hi Sachin,

This looks clearly like an assignment problem. Please show the code you have tried and the issues you are facing. Since Not a code mill

I hope this might help you

Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

I Think you expecting this, but 2nd problem i am not able to understand
Please let me understand
first line has first letter
2nd one has 1st letter and 2nd letter and 3rd letter which one?

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38039
Although your solution, Chiranjeevi Kanthraj, is not correct, I shall refer you to what it says on the title page for this forum:
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
Don't be annoyed with me, but in line with that recommendation I have pulled rank and deleted most of the code you posted.

Please remember that posting a complete solution at an early stage is unlikely to help the poster to learn.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Please help for program
Similar Threads
Operator: & ^ |
Can't get to next question...
looping in java
Break back to Topic Menu
Regex to use in replaceall