How to swap two String values without using a
third variable?
Answer Posted / badar awan
public class B
{
public static void main(String [] args)
{
String a = "Badar" ;
String b ="Asad";
a= a+b;
b = a.substring(0,(a.length()-b.length()));
a = a.substring(b.length(),(a.length()));
System.out.println("a == "+ a);
System.out.println("b == "+ b);
}
}
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
how to remove header and footer in jcl using sort utility
what is d main diff between the java and .net framework
How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?
What is the difference between COM and CORBA?
how to check single or double byte in struts
How to know we are in home page of a web application using QTP
why we use abstract word in abstract window toolkit in java language.
9.Difference between even and odd signals?explain with the diagram?
HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??
How to use string functions in QTP?give some examples
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fit" instead of the number and for the multiples of five print "Bit". For numbers which are multiples of both three and five print "FitBit".
As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.
shall we execute our java programmes in jre
i am exeprienced person what is selection process
Diffrence between 2.0,3.0,3.5,4.0. versions of .net?