What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-16 16:15:12
sort treeset in descending order using comparator
//To sort a treeset in descending order just use the descendingSet() method import java.util.TreeSet; public class Main { public static void main(String[] args) { TreeSet<Object> treeSet = new TreeSet<Object>(... Add solution -
Java 2022-03-16 10:40:07
how to make a calculator in java
// this was all coded by me, to use it get Eclipse, or IntelliJ and make a new // Java Project package javaCode; import java.util.Scanner; public class testCode { public static void main(String[] args) { Scanner scan = new Scanner(System.in); ... Add solution