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


Please Help Members By Posting Answers For Below Questions

What are the uses of vb script?

579


Which operator is used to concatenate the 2 values in the vbscript language?

554


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 ?

1554


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)

1409


Mention how to access array data?

509






What is vbscript?

593


What is variant in vb script?

621


What are the rules to name variable in vbscript?

582


How many types of operators are available in the vbscript language?

533


wht must be the interview question on corinthian information technology solutions incorporated.

2181


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

479


How will you convert a given number to long in vbscript?

488


How to delete a cookie using vbscript?

547


How are arrays declared in the vbscript language?

535


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.

1437