Swap two strings without using any variable public class SwapTwoStringWithoutUsingVaraible { public static void main(String[] args) { String a=”delhi”; String
Continue readingSwap two character without using any variable
Swap two character with out using any variable: public class SwapTwoCharacterWithoutUsingVaraible { public static void main(String[] args) { char ch1=’A’;
Continue readingHow to check Missing and Repeated number in array
A array size n have element 1-n but one element is missing and one element is repeated . public class
Continue readingCheck number even or odd without using modulo operator
Check given number is even or odd without using modulo operator. for this we use & operator. if any number
Continue readingFactorial program using recursion in java
Java program for factorial using recursion public class factorial { int fact(int n){ if (n==1) {
Continue readingGet a number from a string in java
How to get number from a string which contains number : example string str=”123″;
Continue readingAdd Two Big Number In Java
We have two big number such that out of range of Integers then, how are you add these number. we
Continue readingHow to create Linklist In Java
package linklist; import java.util.Scanner; /* Class Node */ class Node1 { protected int data; protected Node1 link;
Continue reading