How to swap two String values without using a
third variable?
Answer Posted / andy
'Swapping two strings in vb.net
Private Function SwappStrings(ByVal str1 As String,
ByVal str2 As String) As String
str1 = str1 + str2
str2 = str1.Substring(0, (str1.Length -
str2.Length))
str1 = str1.Substring(str2.Length)
SwappStrings = "A is : " & str1.ToString & "And B
is : " & str2.ToString
End Function
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
You are given some denominations of coins in an array (int denom[])and infinite supply of all of them. Given an amount (int amount), find the minimum number of coins required to get the exact amount. What is the method called?
What are two of your strengths that you will bring to our QA/testing team?
Busy waiting is a method whereas a taskwaits for a given event by continiously checking for an event to occur. What is the main problem with this approach
can we use commit,rollback in triggers and how?
Outline the two important features of a terminating recursion. Any ideas?
in IBM PC -AT.WAT AT REFERS TO?
Explain polymorphism. Provide an example.
what are the advantages of sap on other software ?
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad
1.how to deploy the Maven application in weblogic server? 2.In Real time projects all classes are singleton or some classes only singleton explain? 3.what are the major uses of the designpatterns? 4.explain restful &Soap based services explain?
Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.
iam confused to choose among testing, .net and java can anybody help me????????
How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?