It is simple just create class from Boolean1 and write this code and save .java extention and run it.
public class Boolean1{
public static void main(String[] args){
boolean b = true;
String s = new Boolean(b).toString();
System.out.println("String is:"+ s);
}
}
Subscribe to:
Post Comments (Atom)
How to find middle node of LinkedList without using extra memory in java
To find the middle node of a LinkedList without using extra memory in Java, you can use the "tortoise and hare" algorithm. This al...
-
1) List Interface Implementation public interface List<T extends Comparable<T>> { public Node<T> getMi...
-
public class PrimeNumber1To100 { public static void main(String[] args) { System.out.println("Prime numbers from 1 to 100 a...
-
import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; public class LeastRepeatedNumber { public static ...
No comments:
Post a Comment