What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-13 03:56:06
a program that reads words from a text file and displays all words in ascending alphabetical order
import java.util.*; import java.io.*; public class Task1 { public static void main(String[] args) throws Exception { // Check number of arguments passed if (args.length != 1) { System.out.println("Usage: TextFile&qu... Add solution -
Java 2021-09-28 01:18:03
TreeSet higher() method in java
TreeSet higher() method for NullPointerException. import java.util.TreeSet; public class TreeSetHigherMethodExample { public static void main(String[] args) { TreeSet<Integer> ts = new TreeSet<Integer>(); ts.add(9); ts.... Add solution -
Java 2021-09-26 11:34:05
java coding standards for interfaces
It is recommended highly to follow java coding standards. Classnames should start with uppercase letter. Classnames names should be nouns. If Class name is of multiple words then the first letter of inner word must be capital letter. Ex : Employee, Emplo... Add solution -
Java 2021-09-24 00:48:02
TreeSet descendingSet() method in java
TreeSet descendingIterator() method for String value. import java.util.Iterator; import java.util.TreeSet; public class TreeSetDescendingIteratorMethodExample { public static void main(String[] args) { try { TreeSet<String>... Add solution -
Java 2021-09-16 05:56:02
collection types in java
LIST: Can store duplicate values, Keeps the insertion order. It allows multiple null values, Also we can read a certain value by index. - ArrayList not syncronized, array based class - LinkedList not synchronized, doubly linked - Vect... Add solution