on 01-03-2018 12:18 PM
Hi Experts,
i have below requirement pls help me to create UDF
If the 1st character is 0 then replace the same with space. old exterior colour code that is associated with the original order. Note that if the first character of the code is '0', first character will be change to space.
Hello Chiranjeevi
Is this that you need?
the output for the sample is: ***test 1234230012
String str1="01234230012";
if (str1.substring(0,1).equals("0"))
str1=" "+str1.substring(1);
System.out.println("***test"+str1);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Juan,
Thanks for the reply..
my requirement is If the 1st character is 0 then replace the same with space..
for example :input 01D0
I am expecting output as"space1D0"
only i need to first chracter if it 0 replace with zero else need to pass complete vale for ex : input 1234
output1234
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.