Java Tutorial

  • Submitted by: 
    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...
  • Submitted by: 
    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...
  • Submitted by: 
    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. <? xml version = "1.0"...
  • Submitted by: 
    Previously, we covered how to use arrays in Java. If you are unfamiliar with arrays, please read through the first tutorial on arrays here . Two dimensional arrays are used to hold numbers that correspond to one another. One dimensional arrays can be thought of as a collection of variables listed in an indefinite number of rows, but a single column. Two dimensional arrays allow for both...
  • Submitted by: 
    In the previous tutorial, we covered how to create a text file in Java, and then store values in it. First, let's create a simple program that stores two values in a text file. import java.io.* ; public class output { public static void main ( String [ ] args ) { try { File newTextFile = new File ( "data.txt" ) ; FileWriter toFile = new FileWriter ( newTextFile ) ; int hours = 35 ; int pay = 15...
  • Submitted by: 
    This tutorial will teach you how to create a program that will have an example of Caret Event and Listener in Java. A CaretEvent lets the user notify interested parties that the text caret has changed in the event with its source. Note: A caret is the cursor indicating the insertion point So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of...
  • Submitted by: 
    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...
  • Submitted by: 
    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...
  • Submitted by: 
    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...
  • Submitted by: 
    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...

Pages