Skip to main content

Java Tutorial

Android: Simple Stopwatch Dedicated For Beginners

In this tutorial we will try to create a Simple Stopwatch Using Android. Android is most commonly comes installed on a variety of smartphones and tablets, and even in TV. Android is an open source so that developer find it easy to develop and expand new features. So let's do the coding... Getting Started: First you will have to download & install the Android Development IDE (Android Studio or

Query IP Address Location in Bulk using Java

This Java code lookup the IP2Location info from an IP address. Things that we can do with this script. 1. Redirect based on country 2. Digital rights management 3. Web log stats and analysis 4. Auto-selection of country on forms 5. Filter access from countries you do not do business with 6. Geo-targeting for increased sales and click-through import com.ip2location.*; import java.io.File; import

User Login and Registration Application In Andriod

In this tutorial we will show you how to create a User Login and Registration Application In Android with database. This application is written in Java and Xml file. We create this Login and Registration to help other users or programmers creating their first application in their android projects. Sample Code For the Login Form UI Design to be visible in the user. Script for the function of Login

Point Of Sale System for Restaurant (Java Console)

This Point of Sale System for Santa Klaus Restaurant was programmed in Java Console without any database. The features of the system are the following: - Login - Ordering - Order Information - Customer Information - Billing - Viewing of Dish - Inventory - Filtered all errors Account Information: username: admin password: admin For more inquiries and need programmer for your thesis systems in any

Graphics: drawString Method in Java

Today in Java, i will teach you how to create java program that will have the drawString method in creating graphics in applet. The drawString() method, takes as parameters an instance of the String class containing the text to be drawn, and two integer values specifying the coordinates where the text is placed (x and y coordinates in the screen). So, now let's start this tutorial! 1. Open

Create Applet in Java

Today in Java, i will teach you how to create an applet in Java. An applet is a small application that is viewed on the Web using java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of sampleApplet.java. In the classname, extend a JApplet to have an applet library. 2. Import javax.swing.* and awt.* package because we will going to have the

Color Class in Java

Today, I will teach you the basics of having colors in Java. Colors may add life to your GUI Programs. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of colorClass.java. 2. Import javax.swing and java.awt to have GUI components such as frames and buttons. import javax.swing.*; import java.awt.*; 3. Initialize a panel and a button for your

Bubble Sort in Java Application

The following Java program is a Bubble Sort in Data Structure. . I will be using the JCreator IDE in developing the program. To start in this tutorial, first open the JCreator IDE, click new and paste the following code. public class BubbleSort{ static int myNumbers[]=new int[5]; public static void main(String[] args){ myNumbers[0]=6; myNumbers[1]=22; myNumbers[2]=9; myNumbers[3]=100; myNumbers[4]

Checking Account Balance in Java Application

The following Java Program shows how to Check Account Balance. This program calculates a customer’s checking account balance at the end of the month. . I will be using the JCreator IDE in developing the program. To start in this tutorial, first open the JCreator IDE, click new and paste the following code. import java.io.*; import java.util.*; public class CheckingAccountBalance { static final

Arrays and Variable Length Parameters List

Arrays and Variable Length Parameters List The following Java program application uses Arrays and Variable Length Parameters List. I will be using the JCreator IDE in developing the program. To start in this tutorial, first open the JCreator IDE, click new and paste the following code. import java.util.*; public class LargestNumber { public static void main(String[] args) { double[] numberList =