If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Java: Breaking Compound Sentences

Sometimes people write compound sentences which have two statements in one sentence.
For example I like you and you like me. I would like you to write a function called
BREAK_COMP that will accept a sentence and if the the sentence is a compound sentence
return a list containing a list for each statement. If the sentence is not a compound sentence
return a list of the sentence within a list.

You can assume the following:
1. AND is the only word that can create compound sentences.
2. Any time that AND is used it is a compound sentence.
3. A compound sentence can only have 1 AND in it.

If I type in (BREAK_COMP '(I like you))it will output ((I LIKE YOU))

You cannot use any String class functions like myString.substring(x, y).

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.