Java Source Code Examples

Some useful java projects are provided in this page, hope they can help the new developers to quickly grasp it. Farsi date to Englis Date Converter in Java. An example that shows the behavior of value parameters.

Java examples (example source code) Organized by topicJava Coding SamplesJava Examples

Simple Mathmatical Calculator in Java. Code demonstrates the usage of String Tokenizer in Java. Code to find a a solution to an N queens problem. Determine if airlines can be moved from airline to another based on network of airline partners. UnsortedHashSet - An unsorted set that uses a hashtable with closed address hashing to store values.

Java Coding Samples

Changed GenericList so it is generic based on Java generics syntax instead of relying on Object. Changed the GenericList class so that it implements the Iterable interface in order to demonstrate how to implement an iterator using an inner class.

You need the Stopwatch class, a non standard Java class, as well. Java Swing project to Backup Mysql database.

Download free open source code for you projects

Getting input from Keyboard with Scanner class Reading ints from file with Scanner class Writing ints to file Connecting to and reading from a web page. Note you need a lot of other files for this to work. Altered the list to store anything, not just ints. Accesing database of oracle in java.

Another example of recursion from the game minesweeper. Addition of numbers using swing and jframe in java. Very simple version of the Conway's Game of Life. Currently only the add method is implemented. This illustrates some of the more confusing concepts in class syntax and mechanics such as constructors, static vs.

Programming Tutorials and Source Code ExamplesJava examples (example source code) Organized by topic

Java examples (example source code) Organized by topic

Active rational unified process in java. PrimeEx A program with various approaches to determine if an int is prime or not. Does not contain all the methods you would expect of a LinkedList. SimpleWordCount - Program demonstrating use of a map to count the frequency of words in a file.

Documentation for Stopwatch class. Includes versions of toString using String concatenation and StringBuffer to illustarte performance differences. Here is a sample input file. Similar to the LinkedList developed in class. Java is used in a wide variety of computing platforms from embedded devices and mobile phones on the low end, chess game for windows 8.1 to enterprise servers and supercomputers on the high end.

Note the queensAreSafe method has not been completed. While less common, Java applets are sometimes used to provide improved and secure functions while browsing the World Wide Web on desktop computers. Address book created in java using swing. Inputs student average and displays it's equivalent point. In Java all parameters are passed by value.

Zigzag Graphics Applet Java. Used to demonstrate Java syntax.