how to reverse a string with out using string or predefined
function,ex:string is " i love india". the output should be
like this "i evol aidni"
Answer Posted / janardhan
Given sting
String str="i love india";
String s[]=str.split();
for(int i=str.length();i>0;i--)
System.out.println(s[i]);
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is the use of running the scripts in Hidden-mode in UFT?
What are the different attribute used with regular expression?
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
What is the default add-ins in qtp?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
Explain hybrid framework with advantages and disadvantages?
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
What are the technologies supported by qtp?
how do u plan test automation?
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
What are the Disadvantages of shared object repository?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
wt is the use of multiple questions in QTP
What are parameterizing tests?
tell me abt a time when u had to go above &beyind the call of duty to get the job done