Category Archives: Java

Java programs,Java concepts,

Sudoku – Solver

After a long time I’m writing this post. Today, I would like to explain you one of my project which I have worked on. This my programming Languages project – A 16 X 16 Sudoku Solver with a Java Driven … Continue reading

Posted in C, Java, Python | Tagged , , , , , , , , , , , , , , | Leave a comment

Java program for Insertion Sort

what is insertion sort? Insertion sort is one of the techniques available for re-arrangement of given input variables. The efficiency of this techinique decreases with the increase in the size of the input data. That is insertion sort is advisable … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , , , , , , , , , | 1 Comment

Java program for Bubble Sort

Sorting of data can be integral part of processing the given input to produce required output. Sorting may be required to remove data objects which are far from the mean of the entire data. Currently there are many sorting techniuqes, … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , , | 2 Comments

Binary search program in Java

Binary search is the step in searching techniques. Because of the draw backs of linear search, binary search came into light. The major difference between Linear and Binary search is, in linear search we need not to sort the given … Continue reading

Posted in Java | Tagged , , , , , , | Leave a comment

Linear search program in Java

Linear search is one of the basic searching techniques used in programming. There are many other advanced techniques for searching, but to learn about searching we shoudl start with linear search. This technique is simple to learn, among all the … Continue reading

Posted in Java | Tagged , , , , , , , , , | Leave a comment

Java Program for Calculator

In this tutorial we shall learn to create a Java powered calcultor. Just with the basic knowledge of control structures in Java, we can easily design a calculator in Java. All we need to know about using, If statement, While … Continue reading

Posted in Java | Tagged , , , , , , , | Leave a comment

Java Applet program to display the Button

In this tutorial we shall learn about buttons in applet and handling those buttons.As a simple task we shall make a program “which show the users the button which he has clicked”.For this we need button in applet.The declaration of … Continue reading

Posted in Java | Tagged , , , , , , , , , , | Leave a comment

Java Applet Background color

In our earlier post we have seen Introduction to applet in Java.In today’s post we shall learn about changing the background of the applet when a particular button in selected. To make this program we need to learn about buttons … Continue reading

Posted in Java | Tagged , , , , , , , | Leave a comment

Sample Applet program in Java

Applets are the small applications programmed in Java and embedded in html code. Usually applets are delivered to user as byte-code.Every page in a website contains applet code and is executed within a JavaVirtualMachine(JVM).We can distinguish a general java program … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Appending data to the existing data in java

In real life we may encounter a situation in which may need to write the new data in a file without loosing old data.This is called as appending of data.We can make this using many classes present in the Java … Continue reading

Posted in Java | Tagged , , , , | Leave a comment

Copying data from one file to other file using java

Before to this post we have learnt about writing data to a File and reading data from the File.In our today’s post we shall learn about copying the data from one File to the other File.This is pretty easy and … Continue reading

Posted in Java | Tagged , , , , , , , , | Leave a comment

Creating and Writing Excel file in Java

In our earlier post we have learned about creating and writing data to a .txt file in Java.In this tutorial we shall learn about creating and writing data to a excel file.There are two ways in creating an Excel file … Continue reading

Posted in Java | Leave a comment

Java program to write data into a file

Files are the most complicated concept in any programming language.In this tutorial we shall make it simpler by learning some basic techniques in File.There are two types of operation done on files.First, we can write the data into the file.The … Continue reading

Posted in Java | Tagged , , , , , , , | 2 Comments

Java program for Inserting rows using preparedstatement

In our earlier post we have learned about making connection from a Java program to the databases.But the drawback of just using createStatement() and excuteuery(),is that we can request for run time values and then insert it into the database. … Continue reading

Posted in Java | Tagged , , , , , | Leave a comment

Connecting Java to Mysql Database

In our earlier post we learned about Connecting Java to Microsoft Access.In today’s post we shall learn about connecting Java to Mysql database.For connecting Java to Mysql we need to install Mysql odbc drivers.You can get the drivers from their … Continue reading

Posted in Java | Tagged , , , , , , | Leave a comment

Connecting Java to Microsoft Access DataBase

Database plays a very important role in maintaining a web site or a organization details.It will be exciting if we are able to use the data present in Database in our program.One of the important features of Java is that … Continue reading

Posted in Java | Tagged , , , , , , , , , , , | 2 Comments

Programming with Packages…!!!

In our earlier post we introduced you to package in Java.Today we shall make a program on this concept.The statement of the program is as follows: “Write a program to keep student information in one package and student marks information … Continue reading

Posted in Java | Tagged , , , , , , | Leave a comment

Packages in Java with Examples…!!!

Packages….!!!Packages are those class which contains methods without the main method in them.Packages are mainly used to reuse the classes which are already created/used in other program.We can define many number of classes in the same package.Packages are mainly divided … Continue reading

Posted in Java | Tagged , , , , , , , , , | 1 Comment

Java program to get the IP address

In today’s post we are going to learn how to get the ip address.This is very simple and easy program among all basic programs of java.In this program we are importing the classes “import java.net.InetAddress”,”import java.net.UnknownHostException”.Here we are declaring a … Continue reading

Posted in Java | Tagged , , , , | Leave a comment