AmitDiwan has Published 10740 Articles

Implement Decade Class from Ennead Class in Java using JavaTuples

AmitDiwan

AmitDiwan

Updated on 20-Sep-2019 07:34:59

147 Views

Following is an example to implement Decade Class from Ennead Class in Java using JavaTuples −Exampleimport org.javatuples.Decade; import org.javatuples.Ennead; public class MyDemo {    public static void main(String[] args) {       Ennead e =          Ennead.with("Katie", "Tom", "Ryan", "Tom", "Bradley", "David", "Steve", "Brad", "Jacob");   ... Read More

How to sort TreeSet in descending order in Java?

AmitDiwan

AmitDiwan

Updated on 20-Sep-2019 07:28:17

9K+ Views

To sort TreeSet in descending order, use the descendingSet() method in Java.The descendingSet() method is used to return a reverse order view of the elements contained in this set.At first, create a TreeSet −TreeSet treeSet = new TreeSet();Then add some elements −treeSet.add(45); treeSet.add(15); treeSet.add(99); treeSet.add(70);Sort them indecreasing order −TreeSet res = (TreeSet)treeSet.descendingSet();Following ... Read More

How to sort HashSet in Java

AmitDiwan

AmitDiwan

Updated on 20-Sep-2019 07:15:36

2K+ Views

To sort HashSet in Java, you can use another class, which is TreeSet.Following is the code to sort HashSet in Java −Example Live Demoimport java.util.*; public class Main {    public static void main(String args[]) {       Set hashSet = new HashSet();       hashSet.add("green");       ... Read More

HTML DOM Table deleteTFoot() Method

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 13:38:33

98 Views

The HTML DOM table deleteTFoot() method delete the element from the table in an HTML document.SyntaxFollowing is the syntax −object.deleteTFoot()Let us see an example of HTML DOM table deleteTFoot() method −Example Live Demo    body {       color: #000;       background: lightblue;     ... Read More

HTML DOM Table deleteCaption() Method

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 13:35:04

94 Views

The HTML DOM table deleteCaption() method delete the first element from the table in an HTML document.SyntaxFollowing is the syntax −object.deleteCaption()Let us see an example of HTML DOM table deleteCaption() method −Example Live Demo    body {       color: #000;       background: lightblue;   ... Read More

HTML DOM Table insertRow() Method

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 13:31:16

263 Views

The HTML DOM table insertRow() method generates an empty element and adds it to the table in an HTML document.SyntaxFollowing is the syntax −object.insertRow(index)Here, index represent a number that specifies the position of the row to insert.Let us see an example of HTML DOM table insertRow() method −Example Live Demo ... Read More

HTML DOM Table createTHead() Method

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 13:27:04

225 Views

The HTML DOM table createTHead() method generates an empty element and adds it to the table in an HTML document.SyntaxFollowing is the syntax −object.createTHead()Let us see an example of HTML DOM table createTHead() method −Example Live Demo    body {       color: #000;       ... Read More

HTML DOM Table createTFoot() Method

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 13:25:06

134 Views

The HTML DOM table createTFoot() method generates an empty element and adds it to the table in an HTML document.SyntaxFollowing is the syntax −object.createTFoot()Let us see an example of HTML DOM table createTFoot() method −Example Live Demo    body {       color: #000;       ... Read More

HTML DOM Table createCaption() Method

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 13:08:33

112 Views

The HTML DOM table createCaption() method generates an empty element and adds it to the table in an HTML document.SyntaxFollowing is the syntax −object.createCaption()Let us see an example of HTML DOM table createCaption() method −Example Live Demo    body {       color: #000;       ... Read More

HTML DOM Table caption Property

AmitDiwan

AmitDiwan

Updated on 19-Sep-2019 13:03:42

176 Views

The HTML DOM table createCaption() method generates an empty element and adds it to the table in an HTML document.SyntaxFollowing is the syntax −object.createCaption()Let us see an example of HTML DOM table createCaption() method −Example Live Demo    body {       color: #000;       ... Read More

Advertisements