Hibernate Many to Many Example using Annotation </h1> <div class="chapter"> <div class="prev"><a class="chapter" href="hibernate-many-to-many-example-using-xml.php">« previous</a></div> <div class="next"><a class="chapter" href="hibernate-one-to-one-example-using-xml.php">Next Chapter »</a></div> </div> <p>In the past segment, we have performed numerous to many mapping utilizing XML record. Here, we will play out this undertaking utilizing comment. </p> <p>We can delineate to numerous connection either utilizing rundown, set, sack, map and so on. Here, we are going to utilize list for some to-many mapping. In such case, three tables will be created.</p> <h2 class="h2">Example of Many to Many Mapping</h2> <p>In this model, we will produce a numerous to numerous connection among inquiries and replies by rundown. </p> <h3 class="h3">1) Create the Persistent class</h3> <p><strong>Question.java</strong></p> <div class="codeblock"><div class="dp-highlighter"><div class="bar"><div class="tools"><a href="#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('About',this);return false;"></a></div></div><ol start="1" class="dp-j"><li class="alt"><span><span class="keyword">package</span><span> com.javatpoint;    </span></span></li><li class=""><span>    </span></li><li class="alt"><span><span class="keyword">import</span><span> java.util.List;  </span></span></li><li class=""><span><span class="keyword">import</span><span> javax.persistence.*;    </span></span></li><li class="alt"><span>    </span></li><li class=""><span><span class="annotation">@Entity</span><span>  </span></span></li><li class="alt"><span><span class="annotation">@Table</span><span>(name=</span><span class="string">"ques1123"</span><span>)  </span></span></li><li class=""><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> Question {    </span></span></li><li class="alt"><span>    <span class="annotation">@Id</span><span>  </span></span></li><li class=""><span>    <span class="annotation">@GeneratedValue</span><span>(strategy=GenerationType.AUTO)  </span></span></li><li class="alt"><span><span class="keyword">private</span><span> </span><span class="keyword">int</span><span> id;    </span></span></li><li class=""><span><span class="keyword">private</span><span> String qname;   </span></span></li><li class="alt"><span>  </span></li><li class=""><span><span class="annotation">@ManyToMany</span><span>(targetEntity = Answer.</span><span class="keyword">class</span><span>, cascade = { CascadeType.ALL })  </span></span></li><li class="alt"><span><span class="annotation">@JoinTable</span><span>(name = </span><span class="string">"q_ans1123"</span><span>,   </span></span></li><li class=""><span>            joinColumns = { <span class="annotation">@JoinColumn</span><span>(name = </span><span class="string">"q_id"</span><span>) },   </span></span></li><li class="alt"><span>            inverseJoinColumns = { <span class="annotation">@JoinColumn</span><span>(name = </span><span class="string">"ans_id"</span><span>) })  </span></span></li><li class=""><span><span class="keyword">private</span><span> List<Answer> answers;  </span></span></li><li class="alt"><span>  </span></li><li class=""><span><span class="keyword">public</span><span> </span><span class="keyword">int</span><span> getId() {  </span></span></li><li class="alt"><span>    <span class="keyword">return</span><span> id;  </span></span></li><li class=""><span>}  </span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setId(</span><span class="keyword">int</span><span> id) {  </span></span></li><li class=""><span>    <span class="keyword">this</span><span>.id = id;  </span></span></li><li class="alt"><span>}  </span></li><li class=""><span><span class="keyword">public</span><span> String getQname() {  </span></span></li><li class="alt"><span>    <span class="keyword">return</span><span> qname;  </span></span></li><li class=""><span>}  </span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setQname(String qname) {  </span></span></li><li class=""><span>    <span class="keyword">this</span><span>.qname = qname;  </span></span></li><li class="alt"><span>}  </span></li><li class=""><span><span class="keyword">public</span><span> List<Answer> getAnswers() {  </span></span></li><li class="alt"><span>    <span class="keyword">return</span><span> answers;  </span></span></li><li class=""><span>}  </span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setAnswers(List<Answer> answers) {  </span></span></li><li class=""><span>    <span class="keyword">this</span><span>.answers = answers;  </span></span></li><li class="alt"><span>}      </span></li><li class=""><span>}  </span></li></ol></div><textarea name="code" class="java" style="display: none;">package com.javatpoint; import java.util.List; import javax.persistence.*; @Entity @Table(name="ques1123") public class Question { @Id @GeneratedValue(strategy=GenerationType.AUTO) private int id; private String qname; @ManyToMany(targetEntity = Answer.class, cascade = { CascadeType.ALL }) @JoinTable(name = "q_ans1123", joinColumns = { @JoinColumn(name = "q_id") }, inverseJoinColumns = { @JoinColumn(name = "ans_id") }) private List<Answer> answers; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getQname() { return qname; } public void setQname(String qname) { this.qname = qname; } public List<Answer> getAnswers() { return answers; } public void setAnswers(List<Answer> answers) { this.answers = answers; } } </textarea></div> <p><strong>Answer.java</strong></p> <div class="codeblock"><div class="dp-highlighter"><div class="bar"><div class="tools"><a href="#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('About',this);return false;"></a></div></div><ol start="1" class="dp-j"><li class="alt"><span><span class="keyword">package</span><span> com.javatpoint;  </span></span></li><li class=""><span>  </span></li><li class="alt"><span><span class="keyword">import</span><span> javax.persistence.*;  </span></span></li><li class=""><span>  </span></li><li class="alt"><span><span class="annotation">@Entity</span><span>  </span></span></li><li class=""><span><span class="annotation">@Table</span><span>(name=</span><span class="string">"ans1123"</span><span>)  </span></span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> Answer {   </span></span></li><li class=""><span>      </span></li><li class="alt"><span>    <span class="annotation">@Id</span><span>  </span></span></li><li class=""><span>    <span class="annotation">@GeneratedValue</span><span>(strategy=GenerationType.AUTO)  </span></span></li><li class="alt"><span><span class="keyword">private</span><span> </span><span class="keyword">int</span><span> id;    </span></span></li><li class=""><span><span class="keyword">private</span><span> String answername;    </span></span></li><li class="alt"><span><span class="keyword">private</span><span> String postedBy;    </span></span></li><li class=""><span><span class="keyword">public</span><span> </span><span class="keyword">int</span><span> getId() {  </span></span></li><li class="alt"><span>    <span class="keyword">return</span><span> id;  </span></span></li><li class=""><span>}  </span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setId(</span><span class="keyword">int</span><span> id) {  </span></span></li><li class=""><span>    <span class="keyword">this</span><span>.id = id;  </span></span></li><li class="alt"><span>}  </span></li><li class=""><span><span class="keyword">public</span><span> String getAnswername() {  </span></span></li><li class="alt"><span>    <span class="keyword">return</span><span> answername;  </span></span></li><li class=""><span>}  </span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setAnswername(String answername) {  </span></span></li><li class=""><span>    <span class="keyword">this</span><span>.answername = answername;  </span></span></li><li class="alt"><span>}  </span></li><li class=""><span><span class="keyword">public</span><span> String getPostedBy() {  </span></span></li><li class="alt"><span>    <span class="keyword">return</span><span> postedBy;  </span></span></li><li class=""><span>}  </span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">void</span><span> setPostedBy(String postedBy) {  </span></span></li><li class=""><span>    <span class="keyword">this</span><span>.postedBy = postedBy;  </span></span></li><li class="alt"><span>}  </span></li><li class=""><span>  </span></li><li class="alt"><span>}    </span></li></ol></div><textarea name="code" class="java" style="display: none;">package com.javatpoint; import javax.persistence.*; @Entity @Table(name="ans1123") public class Answer { @Id @GeneratedValue(strategy=GenerationType.AUTO) private int id; private String answername; private String postedBy; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getAnswername() { return answername; } public void setAnswername(String answername) { this.answername = answername; } public String getPostedBy() { return postedBy; } public void setPostedBy(String postedBy) { this.postedBy = postedBy; } } </textarea></div> <h3 class="h3">2) Add project information and configuration in pom.xml file.</h3> <p>Open pom.xml file and click source. Now, add the below dependencies between <dependencies>....</dependencies> tag.</p> <div class="codeblock"><div class="dp-highlighter"><div class="bar"><div class="tools"><a href="#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('About',this);return false;"></a></div></div><ol start="1" class="dp-j"><li class="alt"><span><span><dependency>    </span></span></li><li class=""><span>    <groupId>org.hibernate</groupId>    </span></li><li class="alt"><span>    <artifactId>hibernate-core</artifactId>    </span></li><li class=""><span>    <version><span class="number">5.3</span><span>.</span><span class="number">1</span><span>.Final</version>    </span></span></li><li class="alt"><span></dependency>    </span></li></ol></div><textarea name="code" class="java" style="display: none;"><dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>5.3.1.Final</version> </dependency> </textarea></div> <br> <div class="codeblock"><div class="dp-highlighter"><div class="bar"><div class="tools"><a href="#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('About',this);return false;"></a></div></div><ol start="1" class="dp-j"><li class="alt"><span><span><dependency>    </span></span></li><li class=""><span>    <groupId>com.oracle</groupId>    </span></li><li class="alt"><span>    <artifactId>ojdbc14</artifactId>    </span></li><li class=""><span>    <version><span class="number">10.2</span><span>.</span><span class="number">0.4</span><span>.</span><span class="number">0</span><span></version>    </span></span></li><li class="alt"><span></dependency>    </span></li></ol></div><textarea name="code" class="java" style="display: none;"><dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.4.0</version> </dependency> </textarea></div> <h3 class="h3">3) Create the configuration file</h3> <p>This file contains information about the database and mapping file. </p> <div class="codeblock"><div class="dp-highlighter"><div class="bar"><div class="tools"><a href="#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('About',this);return false;"></a></div></div><ol start="1" class="dp-j"><li class="alt"><span><span><?xml version=</span><span class="string">'1.0'</span><span> encoding=</span><span class="string">'UTF-8'</span><span>?>    </span></span></li><li class=""><span><!DOCTYPE hibernate-configuration PUBLIC    </span></li><li class="alt"><span>          <span class="string">"-//Hibernate/Hibernate Configuration DTD 5.3//EN"</span><span>    </span></span></li><li class=""><span>          <span class="string">"http://hibernate.sourceforge.net/hibernate-configuration-5.3.dtd"</span><span>>    </span></span></li><li class="alt"><span>    </span></li><li class=""><span><hibernate-configuration>    </span></li><li class="alt"><span>    </span></li><li class=""><span>    <session-factory>    </span></li><li class="alt"><span>        <property name=<span class="string">"hbm2ddl.auto"</span><span>>create</property>    </span></span></li><li class=""><span>        <property name=<span class="string">"dialect"</span><span>>org.hibernate.dialect.Oracle9Dialect</property>    </span></span></li><li class="alt"><span>        <property name=<span class="string">"connection.url"</span><span>>jdbc:oracle:thin:</span><span class="annotation">@localhost</span><span>:</span><span class="number">1521</span><span>:xe</property>    </span></span></li><li class=""><span>        <property name=<span class="string">"connection.username"</span><span>>system</property>    </span></span></li><li class="alt"><span>        <property name=<span class="string">"connection.password"</span><span>>jtp</property>    </span></span></li><li class=""><span>        <property name=<span class="string">"connection.driver_class"</span><span>>oracle.jdbc.driver.OracleDriver</property>    </span></span></li><li class="alt"><span>    <mapping <span class="keyword">class</span><span>=</span><span class="string">"com.javatpoint.Question"</span><span>/>    </span></span></li><li class=""><span>    <mapping <span class="keyword">class</span><span>=</span><span class="string">"com.javatpoint.Answer"</span><span>/>  </span></span></li><li class="alt"><span>    </session-factory>    </span></li><li class=""><span>    </span></li><li class="alt"><span></hibernate-configuration>  </span></li></ol></div><textarea name="code" class="java" style="display: none;"><?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 5.3//EN" "http://hibernate.sourceforge.net/hibernate-configuration-5.3.dtd"> <hibernate-configuration> <session-factory> <property name="hbm2ddl.auto">create</property> <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property> <property name="connection.url">jdbc:oracle:thin:@localhost:1521:xe</property> <property name="connection.username">system</property> <property name="connection.password">jtp</property> <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <mapping class="com.javatpoint.Question"/> <mapping class="com.javatpoint.Answer"/> </session-factory> </hibernate-configuration> </textarea></div> <h3 class="h3">4) Create the class to store the data</h3> <p><strong>StoreData.java</strong></p> <div class="codeblock"><div class="dp-highlighter"><div class="bar"><div class="tools"><a href="#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"></a><a href="#" onclick="dp.sh.Toolbar.Command('About',this);return false;"></a></div></div><ol start="1" class="dp-j"><li class="alt"><span><span class="keyword">package</span><span> com.javatpoint;    </span></span></li><li class=""><span><span class="keyword">import</span><span> java.util.ArrayList;    </span></span></li><li class="alt"><span><span class="keyword">import</span><span> org.hibernate.*;  </span></span></li><li class=""><span><span class="keyword">import</span><span> org.hibernate.boot.Metadata;  </span></span></li><li class="alt"><span><span class="keyword">import</span><span> org.hibernate.boot.MetadataSources;  </span></span></li><li class=""><span><span class="keyword">import</span><span> org.hibernate.boot.registry.StandardServiceRegistry;  </span></span></li><li class="alt"><span><span class="keyword">import</span><span> org.hibernate.boot.registry.StandardServiceRegistryBuilder;  </span></span></li><li class=""><span>     </span></li><li class="alt"><span><span class="keyword">public</span><span> </span><span class="keyword">class</span><span> StoreData {    </span></span></li><li class=""><span><span class="keyword">public</span><span> </span><span class="keyword">static</span><span> </span><span class="keyword">void</span><span> main(String[] args) {    </span></span></li><li class="alt"><span>     </span></li><li class=""><span>    StandardServiceRegistry ssr=<span class="keyword">new</span><span> StandardServiceRegistryBuilder().configure(</span><span class="string">"hibernate.cfg.xml"</span><span>).build();    </span></span></li><li class="alt"><span>    Metadata meta=<span class="keyword">new</span><span> MetadataSources(ssr).getMetadataBuilder().build();    </span></span></li><li class=""><span>    SessionFactory factory=meta.getSessionFactoryBuilder().build();    </span></li><li class="alt"><span>    Session session=factory.openSession();    </span></li><li class=""><span>    Transaction t=session.beginTransaction();      </span></li><li class="alt"><span>          </span></li><li class=""><span>    Answer an1=<span class="keyword">new</span><span> Answer();  </span></span></li><li class="alt"><span>    an1.setAnswername(<span class="string">"Java is a programming language"</span><span>);  </span></span></li><li class=""><span>    an1.setPostedBy(<span class="string">"Ravi Malik"</span><span>);  </span></span></li><li class="alt"><span>      </span></li><li class=""><span>    Answer an2=<span class="keyword">new</span><span> Answer();  </span></span></li><li class="alt"><span>    an2.setAnswername(<span class="string">"Java is a platform"</span><span>);  </span></span></li><li class=""><span>    an2.setPostedBy(<span class="string">"Sudhir Kumar"</span><span>);  </span></span></li><li class="alt"><span>     </span></li><li class=""><span>    Question q1=<span class="keyword">new</span><span> Question();  </span></span></li><li class="alt"><span>    q1.setQname(<span class="string">"What is Java?"</span><span>);  </span></span></li><li class=""><span>    ArrayList<Answer> l1=<span class="keyword">new</span><span> ArrayList<Answer>();  </span></span></li><li class="alt"><span>    l1.add(an1);  </span></li><li class=""><span>    l1.add(an2);  </span></li><li class="alt"><span>    q1.setAnswers(l1);  </span></li><li class=""><span>      </span></li><li class="alt"><span>      </span></li><li class=""><span>      Answer ans3=<span class="keyword">new</span><span> Answer();    </span></span></li><li class="alt"><span>        ans3.setAnswername(<span class="string">"Servlet is an Interface"</span><span>);    </span></span></li><li class=""><span>        ans3.setPostedBy(<span class="string">"Jai Kumar"</span><span>);    </span></span></li><li class="alt"><span>            </span></li><li class=""><span>        Answer ans4=<span class="keyword">new</span><span> Answer();    </span></span></li><li class="alt"><span>        ans4.setAnswername(<span class="string">"Servlet is an API"</span><span>);    </span></span></li><li class=""><span>        ans4.setPostedBy(<span class="string">"Arun"</span><span>);    </span></span></li><li class="alt"><span>      </span></li><li class=""><span>    Question q2=<span class="keyword">new</span><span> Question();  </span></span></li><li class="alt"><span>    q2.setQname(<span class="string">"What is Servlet?"</span><span>);  </span></span></li><li class=""><span>    ArrayList<Answer> l2=<span class="keyword">new</span><span> ArrayList<Answer>();  </span></span></li><li class="alt"><span>    l2.add(ans3);  </span></li><li class=""><span>    l2.add(ans4);  </span></li><li class="alt"><span>    q2.setAnswers(l2);  </span></li><li class=""><span>      </span></li><li class="alt"><span>    session.persist(q1);    </span></li><li class=""><span>    session.persist(q2);    </span></li><li class="alt"><span>        </span></li><li class=""><span>    t.commit();    </span></li><li class="alt"><span>    session.close();    </span></li><li class=""><span>    System.out.println(<span class="string">"success"</span><span>);    </span></span></li><li class="alt"><span>      </span></li><li class=""><span>       </span></li><li class="alt"><span>}    </span></li><li class=""><span>}   </span></li></ol></div><textarea name="code" class="java" style="display: none;">package com.javatpoint; import java.util.ArrayList; import org.hibernate.*; import org.hibernate.boot.Metadata; import org.hibernate.boot.MetadataSources; import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.registry.StandardServiceRegistryBuilder; public class StoreData { public static void main(String[] args) { StandardServiceRegistry ssr=new StandardServiceRegistryBuilder().configure("hibernate.cfg.xml").build(); Metadata meta=new MetadataSources(ssr).getMetadataBuilder().build(); SessionFactory factory=meta.getSessionFactoryBuilder().build(); Session session=factory.openSession(); Transaction t=session.beginTransaction(); Answer an1=new Answer(); an1.setAnswername("Java is a programming language"); an1.setPostedBy("Sumit"); Answer an2=new Answer(); an2.setAnswername("Java is a platform"); an2.setPostedBy("Rajesh"); Question q1=new Question(); q1.setQname("What is Java?"); ArrayList<Answer> l1=new ArrayList<Answer>(); l1.add(an1); l1.add(an2); q1.setAnswers(l1); Answer ans3=new Answer(); ans3.setAnswername("Servlet is an Interface"); ans3.setPostedBy("Jai Kumar"); Answer ans4=new Answer(); ans4.setAnswername("Servlet is an API"); ans4.setPostedBy("Arun"); Question q2=new Question(); q2.setQname("What is Servlet?"); ArrayList<Answer> l2=new ArrayList<Answer>(); l2.add(ans3); l2.add(ans4); q2.setAnswers(l2); session.persist(q1); session.persist(q2); t.commit(); session.close(); System.out.println("success"); } } </textarea></div> <div class="chapter"> <div class="prev"><a class="chapter" href="hibernate-many-to-many-example-using-xml.php">« previous</a></div> <div class="next"><a class="chapter" href="hibernate-one-to-one-example-using-xml.php">Next Chapter »</a></div> </div> </div> </div> <hr> <hr> <hr> <hr> <div class="w3-light-grey w3-padding w3-center" id="err_form" style="display:none;"> <span onclick="this.parentElement.style.display='none'" class="w3-closebtn">×</span> <form> <div class="w3-group"> <label for="err_email">Your E-mail:</label> <input class="w3-input" type="text" style="width:100%" id="err_email" name="err_email"> </div> <div class="w3-group"> <label for="err_email">Page address:</label> <input class="w3-input" type="text" style="width:100%" id="err_url" name="err_url" disabled="disabled"> </div> <div class="w3-group"> <label for="err_email">Description:</label> <textarea rows="10" class="w3-input" id="err_desc" name="err_desc" style="width:100%;"></textarea> </div> <div class="form-group"> <button type="button" onclick="sendErr()">Submit</button> </div> <br> </form> </div> <div class="w3-container w3-light-grey w3-padding" id="err_sent" style="display:none;"> <span onclick="this.parentElement.style.display='none'" class="w3-closebtn">×</span> </div> <div class="w3-row w3-center w3-small"> <div class="w3-col l3 m6 s12"> <div class="top10"> </div> </div> <div class="w3-col l3 m6 s12"> <div class="top10"> </div> </div> <div class="w3-col l3 m6 s12"> <div class="top10"> </div> </div> <div class="w3-col l3 m6 s12"> <div class="top10"> </div> </div> </div> <hr> <div class="w3-center w3-small w3-opacity"> javacodegeeks is optimized for learning.© javacodegeeks . <BR>All Right Reserved and you agree to have read and accepted our term and condition <br><br> <a href="../index.html"> <img style="width:150px;height:28px;border:0" ></a> </div> <br><br> </div> </div> <!-- Default Statcounter code for http://javacodegeeks.net http://javacodegeeks.net --> <script type="text/javascript"> var sc_project=11914156; var sc_invisible=1; var sc_security="b4e6f180"; var sc_https=1; </script> <script type="text/javascript" src="https://www.statcounter.com/counter/counter.js" async></script> <noscript><div class="statcounter"><a title="Web Analytics Made Easy - StatCounter" href="http://statcounter.com/" target="_blank"></a></div></noscript> <!-- End of Statcounter Code --> <script type="text/javascript">var _Hasync= _Hasync|| []; _Hasync.push(['Histats.start', '1,4199416,4,6,200,40,00011111']); _Hasync.push(['Histats.fasi', '1']); _Hasync.push(['Histats.track_hits', '']); (function() { var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true; hs.src = ('//s10.histats.com/js15_as.js'); (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs); })();</script> <noscript><a href="/" target="_blank"></a></noscript> <div id='nav_translate_content' style="display:none"> <span onclick='w3_close_nav("translate")' class='w3-closebtn w3-xlarge'>×</span> <br><br>Translate javacodegeeks.net .com: <div id='google_translate_element'></div> <br> </div> <div id='nav_search_content' style="display:none"> <span onclick='w3_close_nav("search")' class='w3-closebtn w3-xlarge'>×</span> <br><br> <div class='searchdiv'> Search javacodegeeks.com: <div id='googleSearch'><div class='gcse-search'></div></div> </div> <br> </div> <script src="../lib/welookups_footer.js"></script> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </body> </html>