JAVA

Write a program in java to swap two number without third variable in one statement?

public class Swapping {                 public static void main(String arg[])                 {                                 int a=7,b=9;                                 System.out.println(“Before Swapping”);                                 System.out.println(a);…

Read More

Write a program in java to swap two number without third variable?

public class Swap {                 public static void main(String arg[])                 {                                 int a=6,b=7;                                 System.out.println(“Before Swapping”);                                 System.out.println(a);…

Read More