Hi, Anybody could tell me What is the script for Reverse of
Given number. Ex:236--632. Thanks in Advance..
Answer Posted / anonimous
public int reverse (int num){
String b = Integer.toString(num);
char [] aa = b.toCharArray();
char []cc = new char [aa.length];
for (int m = 0; m < aa.length; m++)
cc[m] = aa[aa.length - 1 - m];
return Integer(String.valueOf(cc));
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain about tristate constants?
what is the use of QCUtil? explain with one example?
Explain different types of segment?
how to increase the values in text box in a given text box increament by two values by clicking on button
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
Mention what is the technology used by vb script?
How will you get a random number between 0 and 1 in vbscript?
What is the event handling in vbscript?
Both Static and dynamic arrays are handled by VB script. Is it true?
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
Explain the .wsf files?
What is the purpose of regexp object in vbscript?
what is the features of visual basic?
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?