Category Archives: Java

Background

Java – programming language designed to build secure, powerful applications that run across multiple operating systems, including Linux, Mac OS X, and Windows. The Java language is known to be flexible, scalable, and maintainable. IDE/Integrated Development Environment JVM/Java Virtual Machine … Continue reading

Posted in Java | Leave a comment

Algorithm Scripting

Factorial Palindrome

Posted in Java | Leave a comment

Examples

Convert degree F to degree C Arithmetic Question  OR   Grade Equivalent Grade Equivalent – String (equals) Guess The Random Number:  OR  Draw Diamond Check for Prime Number Convert Integer to Binary Number  

Posted in Java | Tagged | Leave a comment

Debugging

Breakpoint – a place where the program will stop executing Method Breakpoint – program is interrupted for debugging before the method is executed Debug the Program 1. Select Debug 2. Select Debug Project 3. Press F8 to move to the … Continue reading

Posted in Java, Uncategorized | Leave a comment

Variables

Literal – a constant that is specified in the code String – double quoted Character – single quoted Variable – declared with a type and a name, starts with a lowercase letter *We can define multiple variables in a single line … Continue reading

Posted in Java | Leave a comment

Basic

Comments Single line – // Multi-line – /* … */ Main.java – must contain a public class called Main *Every Java file contains exactly one public class. This class has the same name as the name of the file Class … Continue reading

Posted in Java | Tagged | Leave a comment

Start

Create New Project on NetBeans 1. File – New Project – Java App 2. Enter the Project Name – Finish 3. In the project menu, right-click on source packages – New – Java Class 4. Enter the name of the … Continue reading

Posted in Java | Leave a comment