Question: I started with my first Apps on Android some days ago.
I'm using Eclipse with Android SDK.

In every Tutorial, I see Code in onCreate().
But whenever I'm doing something in onCreate(), my App crashes at the start.

Do you know what the problem could be?

If I do things like

```
Button btn1 = (Button) findViewById(R.id.button1);

```

in onCreateOptions(), it's working fine...

Answer: 
You can do using [`#squeeze`](http://www.ruby-doc.org/core-2.1.1/String.html#method-i-squeeze)

```
str.squeeze == 'shid!' #=> true

```
I'm not sure I've got the question. But maybe it's what you are looking for:

```
str = 'ssssshhhhiiiiiddd!!!!'
str.split('').uniq.join == 'shid!' #=> true

```