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 the extension .hta?
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
i need to sort the data using qtp script for this how i need to write a qtp script
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
How to pass argument by reference to a function in vbscript?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
Explain about scrrun.dll?
Explain about adodb.stream class?
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)
Explain about constants in vb script?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
what is used of Property........End Property loop ? how to write the script for it?
Which date function is used in the vbscript language to find the difference between the 2 dates?