java

Digital Clock

Simple Digital Clock in java swing. This app might can help you to create time and date using timer. You can also move this application by clicking the frame. To exit, double click on the frame. If you find this code useful, send me a feedback.

Colors in Java

This project display list of colors. It is written in Java swing. It can change the background color of JList, and get background and foreground colors. Try this yourself. This is very simple and easy to do. Hope this will you in your future project.

Keywords

Introduction: This page will talk about Java keywords including Return, Public, Private, Static and Case. What are keywords? The keywords in Java are used to serve a certain purpose (depending on which keyword is used). Not all keywords are used in the same places and some are bound to certain statements. Consistencies The only thing these keywords have in common is that when they are used, they must be in complete lower case.

Try and Catch Statements

Introduction: This page will teach you about the Try and Catch statements in Java. What is a Try and Catch statement? A Try and Catch statement is a very handy statement which allows the program to handle errors and warnings thrown by the scripts. Each Try and Catch statement contains the block of script to handle, a single or multiple exception(s) followed by block(s) of script which are executed if that specific exception is thrown by the handled script.

Short Hand If Else Statement

Introduction: This tutorial page will talk about the short hand version of an if else statement. Important: I highly recommend you read through the If Else tutorial page before reading this tutorial. How is the short hand if else statement structured? The short hand version of an if else statement is used through a couple of symbols, here is the layout of the statement; Action (setting a variable, function or method, etc.) - condition - "?" - What to do if the condition is true - ":" - What to do if the condition is false. When is a