Java

Colors in Java

Submitted by ainaerik on
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.

Basic Calculator

Submitted by DjRhod25 on

This project is for educational purpose only. It runs for NETBEANS and JCreator Only. Besides JCreator and Netbeans I tested, you can also try other applications that you know . Hope this project serves an example and help you in learning Java language.

Keywords

Submitted by GeePee on
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.

Date and Time

Submitted by GeePee on
Introduction: This page will teach you about using the Date import in Java to output or get the current Time and/or Date. When is this needed? Adding a simple clock or date counter to an application adds a slightly more professional look to the overall appeal of the program, as well as having the time handy is always a good thing. What imports are needed? The imports we need to get the current Date and Time are;

Try and Catch Statements

Submitted by GeePee on
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.