The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Strings

Posted by Claus Bakkel on September 29, 2000 at 3:44 AM

Hello!

I need a simple program example in java, to use like the commands
in basic: Left$,Mid$,Right$.

E.G

S$="Java Program"
Left$(S$,4) // Returns "Java"
Right$(S$,4) // Returns "gram"
Mid$(S$,6,4) // Returns "Prog"

Thanks.

Greetingz from Claus B Denmark.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us