r/javahelp • • May 01 '20

Java Problem

Create a method called process that takes in as input a String and returns a String. The method will break the String on the letter ‘e’ and move all letters after the ‘e’ to be the beginning of a new string and any letters before the ‘e’ to be the end of the String. Any String given to the method is guaranteed to have exactly one occurrence of the letter ‘e’. For example: The method would take the String “Bobehi” would return “hiBob”.

Can someone help me with this please. a simple why of doing this would be great. Thanks

2 Upvotes

7 comments sorted by

View all comments

1

u/[deleted] May 02 '20

The task literally tells you what to do.

1.) Create a method called process that takes in a String parameter and returns a String. <-- Start with this.