Jump to content

Help With String Fuctions In Java


Recommended Posts

I want to make a program that does the following online.converthttp://www.hereihostmyimages.com/folder/picture001.jpgto[img ]http://www.hereihostmyimages.com/folder/picture001.jpg[/img ][img ]http://www.hereihostmyimages.com/folder/picture002.jpg[/img ][img ]http://www.hereihostmyimages.com/folder/picture003.jpg[/img ]etcetera etcetera...I made something allready but it isn't as userfriendly as I wanted to. now it needs http://www.hereihostmyimages.com/folder/picture to be input in one textfield, the amount of tags in another textfield and the extension in a third textfield. What i want to do is detect the first '1' in the link. And cut the string into 2 at that point. Then with a loop replace the 01 with 02,03,04 and so on, and paste the extension at the end again.I've been looking at indexOf and others but I can't get it to work. Can someone tell me what functions to use here?Thanks in advance!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...