Category Archives: Java

Information Kiosk System For College Activities

Introduction

Info Kiosk can make a great way in updating students of any activities of school campus. Now a days, common problems faced by the student are lack of information in updating their different activities. So with the help of this system, the students now are update in an early time of information. Unfortunately, most of the school cannot afford to implement such system in a cheaper way. Preferably, in terms of daily updating of information, an Information Kiosk system can really help for a productive school. That is why this study is conducted to build such systems reliable and cheaper enough to be trusted by the student and school. It would be the best and easy to use this information kiosk system.

Java while and the do while loop statements

The while and the do while statements in Java Programming.

We will introduce you to other types of looping statement in Java (while and do while loop).

while loop

while loop is a control structure in Java that executes a block of statements while a condition is true.

Here’s the structure or general format of writing a while loop:

while(condition)
{
loopBody        // yourJavaStatements
}

Java Programming for loop statement

Hi there! This next lesson will be on understanding for loop in Java Programming.

The for loop statement

This type of loop will repeat Java statements for a specific number of times.

forLoop

 

 

 

 

 

Learning Switch Statement in Java Programming

Welcome to our next Java lesson and in this lesson we are going to learn about the switch statement.

What is a switch statement?

A switch statement is just like if else if statement the difference is that there is only one expression/variable to be tested in switch statement.

Here’s the syntax of the switch statement:

switch (variableToTest) {

  case Value1:

        statement(s) to be executed if  variableToTest = Value1;
        break;

  case Value2:

        statement(s) to be executed if  variableToTest = Value2;
        break;

  case Value3:

        statement(s) to be executed if  variableToTest = Value3;
        break;

  default:

        statement(s) to be executed if  all cases did not match the variableToTest;
        break;

}

Java If, If Else, If Else If Statement

Java If, If Else, If Else If Statement

This Lesson will teach us one of the control flow statements in Java programming: the if statement.

Just like every other programming language the if statement in Java is one way form of incorporating decision making on our program.

if statement (the one way selection)

This statement is used to test if the expression is true. In order for the action statement to be executed the expression must return true, otherwise the program will do nothing.

Comments in Java Programming

In this Java tutorial, we are going to learn about creating comments.

Comments in programming do not change the functionality or how your program works but it plays an important role in documentation of your program.

There are 3 types of comments in Java Programming (single line comment, multi line comment and documentation comment).

Java Lesson about Variables

Hi everyone, welcome to our next lesson in Java.

This lesson is about variables in Java. We will learn the following in this lesson:

  • Naming convention of variables in Java
  • How to declare a variable
  • How to initialize and assign value to a variable

A variable is a storage location that has a value or content and may change the value during the execution of program.

Naming convention

Every programming language has its own rules on how to name your variable. Here’s the rule of Java for naming variables.

Primitive Data Types in Java

In this post, you will learn the different primitive data types in Java programming languages.

Primitive data types in Java include the following:

boolean, byte, char, double, float, int, long, short

The above mentioned data types can be grouped into three categories:

Numeric type: it can store or hold numeric value or data (byte, double, float, int, long, short). These data types are usually used for mathematical functions or operations.

Java reserved words

In computer programming, reserved words are those words that are already used by the syntax of that programming language; it can’t be used as identifiers (e.g., name of variable, function name, methods and classes).

Java has its own reserved words. The letters in a reserved word are always in lowercase. They can’t be used for anything other than their intended use.

Introduction to Java Programming

Introduction to Java Programming

Before we begin with our lesson proper, let us discuss first a brief overview of Java Programming Language.

  • Java was developed by James Gosling and his team at Sun Microsystems in 1991 and introduced to the public in 1995.
  • Java programming language was based on C and C++
  • The language was originally intended for interactive tv, microwave oven and to control other consumer appliances.
  • It was first called Oak, named after the oak tree found outside of Gosling’s office; it was then renamed to Java.
  • Java is an object-oriented programming (OOP) language with built-in application programming interface (API) that used to create application and applets.
  • Java is one of the most programming languages in use, especially in client-server web applications.
  • In 2010 Sun Microsystems was acquired by Oracle Corporation.
  • Java is cross platform; write once, run anywhere (WORA)