on 11-18-2011 6:41 AM
Hi all,
I need to take length as input argument and target should be filled with length number of spaces:
Ex: if length is given as 6, target field should contain 6 spaces.
Regards,
Sreenivas
Hi Sreenivas,
Try with below code...
String result ="";
for(int i=0; i<length;i++){
result = result+ " ";
}
return result;
Regards
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.