| Replies
|
|
|
matto
|
Posted at 8:49 pm on Nov. 12, 2008 |
| o snap alright. thanks. that's a useful method.... |
|
|
h a t t
|
Posted at 8:40 pm on Nov. 12, 2008 |
| just added if (str.indexOf(sub) == -1 ) return 0; to the top and it works (when the index is -1 it means that the string is nowhere to be found) |
|
|
h a t t
|
Posted at 8:35 pm on Nov. 12, 2008 |
| ah. it fails if the string doesn't contain the other string anywhere. |
|
|
matto
|
Posted at 8:32 pm on Nov. 12, 2008 |
| yawtf. I'm trying to come up with a situation that'd cause it to fail... can't think of anything. |
|
|
h a t t
|
Posted at 8:30 pm on Nov. 12, 2008 |
| well i ran it in eclipse and it got the results it was looking for so i don't know what the X is about. |
|
|
Majo
|
Posted at 8:09 pm on Nov. 12, 2008 |
I wish I understood that but Java I kicked my ass, sorry. |
|
|
bratalvarado
|
Posted at 8:08 pm on Nov. 12, 2008 |
| wait what is this about |
|
|
glowinthedark
|
Posted at 8:06 pm on Nov. 12, 2008 |
| i thought this was about coffee.. dang it! |
|
|
All 8 previous replies displayed. |