Skip to content
code2java.com
  • HOME
  • ABOUT
code2java.com
  • Java | XML

    Convert String to XML file in Java.

    ByNikhil Naoghare July 5, 2012October 4, 2015

    Hello Friends, In the previous example we have seen how to convert XMl to String. Now this example will do the exact opposite of the previous one i.e. convert from String to XML. We will now try to convert the String stream into an XML file object. Here is the simple code for that.

    Read More Convert String to XML file in Java.Continue

  • Java | XML

    Convert XML file to String Object in Java.

    ByNikhil Naoghare June 27, 2012October 3, 2019

    Hello Friends, This is one of my tutorials in java with respect to XML, to convert xml file to string. Sometimes while working with web-services we may come accross with the requirements of sending the updates to the web-service via a XML file. For the same you may need to convert the XML file into…

    Read More Convert XML file to String Object in Java.Continue

  • Java | Java Examples

    Collections in Java Part III : List

    ByNikhil Naoghare March 6, 2012October 4, 2015

    Hello Friends, This is part III for java collections tutorial. Earlier we have discussed regarding SET collection interface in part II. In this, we will be focusing on an interface that is used when the sequence of the elements needs to be maintained, yes that’s right its LIST interface.Ā List interface in Java Collection Framework also…

    Read More Collections in Java Part III : ListContinue

  • Java | Java Examples

    Java Print Triangle Example.

    ByNikhil Naoghare January 12, 2012October 4, 2015

    Hello Friends, This is one of the basic examples for newbies who are still in the learning phase. šŸ™‚ Most of you may get an assignment to print triangle of * or numbers or serial number etc. So, this example if for all those guys n gals. In this example we will print a Right…

    Read More Java Print Triangle Example.Continue

  • Networking | Other Tips

    FDMA vs TDMA.

    ByNikhil Naoghare January 4, 2012October 4, 2015

    Hello Friends, This is regarding the terms from Computer Networks TDMA and FDMA. These two pre-3G technologies that have been utilized to improve the performance of the 2G network. FDMA (Frequency Division Multiplexing Access): FDMA is a method of dividing a single band into 30 discrete channels. Each channel would then be capable of handling…

    Read More FDMA vs TDMA.Continue

  • Java | Java Examples | JSP

    Jsp include file

    ByNikhil Naoghare December 20, 2011October 4, 2015

    Hello Friends, This is one of the simple tutorials on jsp include file. Most of the time in any of the web application we need some part of the application on almost each of the pages. So, writing the code in each of the pages is really tedious and is not the best practice. For…

    Read More Jsp include fileContinue

  • Java | Java Examples | JSP | Servlets

    Login Example: JSP and Servlets: Part III.

    ByNikhil Naoghare December 20, 2011October 4, 2015

    Hello Friends, This is Part III of this jsp and servlet login tutorial. Check Part I and Part II here. Step 8 ) We are done with the DAOs and Beans. Now we need to create a database from where we will get the authentication details like Username and Password. So, create a database named…

    Read More Login Example: JSP and Servlets: Part III.Continue

  • Java | Java Examples | JSP | Servlets

    Login Example: JSP and Servlets: Part II.

    ByNikhil Naoghare December 20, 2011October 4, 2015

    Hello Friends, This is part II of jspĀ and servlets login example. Check Part I here. Step 4) Now, we need to create a Servlet file for the redirection of the jsp pages. In the src folder under the package code2java, add the Servlet file and name it as LoginServlet. As discussed earlier this servlet file…

    Read More Login Example: JSP and Servlets: Part II.Continue

  • Java | Java Examples | JSP | Servlets

    Login Example – JSP and Servlets: Part I.

    ByNikhil Naoghare December 20, 2011October 4, 2015

    Hello Friends, This is one of the tutorials on JSP and Servlets. In this we will discuss and create a simple login application using servlets and JSP where we will connect to the DB for the user credentials and then authenticate the users accordingly. First of all we will discuss about what we will need…

    Read More Login Example – JSP and Servlets: Part I.Continue

  • Java | Java Examples

    JDBC – Insert, Update and Delete example.

    ByNikhil Naoghare December 15, 2011October 4, 2015

    Hello Friends, This is the simple example for executing the SQL statements to INSERT, UPDATE or DELETE any records from the database using JDBC. In the below code I have explained all the three operations. When we insert, update or delete any records from the database we are updating the database, hence we use the…

    Read More JDBC – Insert, Update and Delete example.Continue

  • Java | Java Examples

    JDBC and MySQL Connection tutorial.

    ByNikhil Naoghare December 14, 2011October 4, 2015

    Hello Friends, One of the significant characteristic of any programming language is its connectivity with the database and its operations. Java supports many options to connect to the database and one of the most used database is MySql. JDBC (Java Data Base Connectivity) is used for connecting the java code with the database and it…

    Read More JDBC and MySQL Connection tutorial.Continue

  • Java | Java Examples

    Error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

    ByNikhil Naoghare December 14, 2011October 4, 2015

    Hello Friends, You may have come across “java.lang.ClassNotFoundException: com.mysql.jdbc.Driver”Ā error/exception while working with java and JDBC. The error occurs mainly when we try to connect to the mySql database from our java code. The error message itself give the clear indication about what we are missing. It says that it is unable to find the Class…

    Read More Error: java.lang.ClassNotFoundException: com.mysql.jdbc.DriverContinue

Page navigation

Previous PagePrevious 1 2 3 4 5 … 8 Next PageNext

© 2026 Code2Java | LinkedIn

Scroll to top
  • HOME
  • ABOUT