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
What are the uses of vb script?
Which operator is used to concatenate the 2 values in the vbscript language?
If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
Mention how to access array data?
What is vbscript?
What is variant in vb script?
What are the rules to name variable in vbscript?
How many types of operators are available in the vbscript language?
wht must be the interview question on corinthian information technology solutions incorporated.
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
How will you convert a given number to long in vbscript?
How to delete a cookie using vbscript?
How are arrays declared in the vbscript language?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.