Java

K-Means Project

Submitted by kdhanamjay on
PROJECT TITLE: K-Means Clustering PURPOSE OF PROJECT: Implement k-means clustering on a training data set to predict classification values of a test data set. AUTHORS: Dhanamjay VERSION or DATE: 1.0 14/08/2014 INSTRUCTIONS: 1) Compile both Java files (javac Data.java KMeansClustering.java) 2) Run KMeansClustering (java KMeansClustering) 3) After prompted, specify number of centroids to use. ------

Functions in Java

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create and use methods in Java. What's a Method: A method is similar to what you may call a function in other languages. Well, actually, it's exactly the same. A function, or a method, is a script which can be called from other scripts in order to run some code, and return a value. The only difference between a function and a method, is that methods are the name given to functions in an Object Oriented Programming (OOP) language, such as Java.

Razmazio : JAVA Side Scroller Game Programming part2

Submitted by moazkhan on

TUTORIAL NO 15

Razmazio : JAVA Side Scroller Game Programming part2

In this tutorial you will learn: 1. Playing sound in JAVA 2. Adding points in java 3. Adding custom Mario FONTS 4. Timer class 5. Animations using timer 6. Side Scroller game 7. Game Programming 8. Changing screens in the game 9. Swing Animations 10. Event handling 11. JAVA awt 12. JAVA swing 13. Adapters In this tutorial I will continue coding my previous tutorial. I will continue adding more functions in GamePanel class.

Razmazio : JAVA Side Scroller Game Programming part1

Submitted by moazkhan on

TUTORIAL NO 14

Razmazio : JAVA Side Scroller Game Programming part1

In this tutorial you will learn: 1. Timer class 2. Animations using timer 3. Side Scroller game 4. Game Programming 5. Changing screens in the game 6. Swing Animations 7. Event handling 8. JAVA awt 9. JAVA swing 10. Adapters Today I am going to teach you how to make a simple yet fun game in JAVA. This tutorial will be divided into two parts so that thing remain simple and everyone could easily understand. In this game we will try to copy the basics features of SUPER MARIO.

PACMAN Animation Programming part2

Submitted by moazkhan on

TUTORIAL NO 12

PACMAN Animation Programming part2

In this tutorial you will learn: 1. Game Programming 2. Swing Animations 3. Event handling 4. JAVA awt 5. JAVA swing 6. Adapters Now we will continue making our PacMan animation. In this tutorial we will write the functions and conditions for up , down ,left and right. Which we were calling in our detect collision function.

PACMAN Animation Programming part1

Submitted by moazkhan on

TUTORIAL NO 12

PACMAN Animation Programming part1

In this tutorial you will learn: 1.Game Programming 2.Swing Animations 3.Event handling 4.JAVA awt 5.JAVA swing 6.KeyListeners Today I am going to teach you how to make a simple PACMAN mockup. In this tutorial we will only set up the pacman character and will provide functionality to the character using arrow key. After that we will set up the pacman mouth open close animation. Then we will setup it’s collision with a wall.

3 Types of FILE IO part2

Submitted by moazkhan on

TUTORIAL NO 10

3 Types of FILE IO part2

In this tutorial you will learn: File Reading using 1.Standard Input Output 2.New Input Output 3.New Input Output2 4.Anonymous classes Today we are going to write our remaining two filing functions i.e of new input output and new input output 2.

3 Types of FILE IO in JAVA part1

Submitted by moazkhan on

TUTORIAL NO 10

3 Types of FILE IO part1

In this tutorial you will learn: File Reading using 1. Standard Input Output 2. New Input Output 3. New Input Output2 4. Anonymous classes Today I am going to teach you how to read files in java using all the three types of methods available in java. The standard input output was the oldest after that new input output was used and now new input output is being used.