can u help me wid this.. i need 30 only 30 mins for my asignment

my professor told us to do such program that a user will input "string with asterisk(*)..

the program must only read the string between the 1st asterisk(*) and the last asterisk(*)... and the character before the 1st and after the last asterisk(*) will be deleted..

thank you..

[296 byte] By [mark2k7a] at [2007-11-27 11:01:23]
# 1

java String API http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html

has some excellent methods to solve this problem, you just have to understand the concept of a String being an array of char characters.

Next time post with a subject line that relates to your programming issue, and usually anything that implies urgency annoys most of the posters here.

lance_dragonsa at 2007-7-29 12:36:30 > top of Java-index,Java Essentials,New To Java...
# 2

"With", not "wid."

"You", not "u".

"I" is captilized.

And most people here won't do your homework for you.

jverda at 2007-7-29 12:36:30 > top of Java-index,Java Essentials,New To Java...
# 3

Only 30 minutes? Looks like you are screwed. But I am feeling generous.

class AsteriskRemover {

// your code goes here

}

floundera at 2007-7-29 12:36:30 > top of Java-index,Java Essentials,New To Java...
# 4

Did you get it done in time?

floundera at 2007-7-29 12:36:30 > top of Java-index,Java Essentials,New To Java...
# 5

If we're gonna get picky:

"Can", not "can".

Either "..." or "?", not "..".

A comma is needed after "need 30", I won't bother saying anything about changing numericals into words for time.

Oh, and "assignment", not "asignment".

lance_dragonsa at 2007-7-29 12:36:30 > top of Java-index,Java Essentials,New To Java...
# 6

Yeah, I lost heart after the first few obvious ones.

jverda at 2007-7-29 12:36:30 > top of Java-index,Java Essentials,New To Java...
# 7

> If we're gonna get picky:

>

> "Can", not "can".

> Either "..." or "?", not "..".

> A comma is needed after "need 30", I won't bother

> saying anything about changing numericals into words

> for time.

>

> Oh, and "assignment", not "asignment".

Spelling (and grammar) errors are common on an international forum as this. But there is a huge difference between making some spelling errors and using all of those nasty SMS-like abbreviations such as u (you), 4 (for), coz (because), etc.

prometheuzza at 2007-7-29 12:36:30 > top of Java-index,Java Essentials,New To Java...