Avatar of CodeLancer
CodeLancer

asked on 

String replace

Hi all,
I am getting one resultset value from query and i assigned it string which have these values
SI_NAME,
SI_ID,
SI_OWNER
SI_STARTTIME

In somecases,any one or more values may missing.
All i need to do is to find the above said values in string and replace with the user defined value.
eg:
SI_NAME="codelancer"
SI_ID="11"
SI_OWNER ="admin"
SI_STARTTIME ="11:45:12"

The important thing here to consider is that order the values assigned in input should be same in output string also i.e

Input String embedname="3&6q=%25SI_NAME%25%25SI_ID%25%25SI_OWNER%25%25SI_STARTTIME%25,0P&6p,0P";

output from string :SI_NAMESI_IDSI_OWNERSI_STARTTIME

final desired output :codelancer11admin11:45:12

Thanks in advance
Java

Avatar of undefined
Last Comment
CEHJ
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of CodeLancer
CodeLancer

ASKER

good answer
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

:)
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo