Dec 31
Prime Numbers From 1 to 100

In this j2se beginners tutorial, let us write a simple java program to display all prime numbers under a given number using ‘for loop’. After that, we will execute the java program and see the output to print list of prime numbers between 1 and 100. Example Java Program Source Code to display all prime [...]

written by Seetha Ram Janapala
Tags: composite numbers, core java for beginners, core java tutorial, j2se, j2se 5.0, java programming scanner, list of prime numbers, primality, prime number, prime number algorithm, prime number check with output, prime number java program, prime numbers between 1 and 100, prime numbers examples, print prime numbers from 1 to 100, trial division

Dec 10
Prime Numbers From 1 to 100

In this java programming beginners tutorial, let us write a simple java program to accept a number from user and find whether the given number is prime or not. Later we can run the program and check the output for different numbers. What is a Prime Number? A natural number (i.e. 1, 2, 3, 4, [...]

written by Seetha Ram Janapala
Tags: composite numbers, core java for beginners, core java tutorial, j2se, j2se 5.0, java programming scanner, primality, prime number, prime number algorithm, prime number check with output, prime number java program, prime numbers between 1 and 100, prime numbers between 100 and 1000, prime numbers examples, print prime numbers from 1 to 100, trial division

Nov 30
Explain Java Logo

It is very common to see different kind of errors and exceptions while running any program. When you are learning java, it is difficult to fix even very simple issues. In this tutorial, let us see how to fix most common exceptions that occur while programming in java. Exception in thread “main” java.lang.NullPointerException It is [...]

written by Seetha Ram Janapala
Tags: core java for beginners, core java tutorial, fix exceptions, j2se 5.0, j2se tutorial, java arrays, java exception in thread main, java exception tutorial, java exceptions, java lang null pointer exception, java nullpointerexception, java strings, java.lang.arrayindexoutofboundsexception, java.lang.stringindexoutofboundsexception, most common java exceptions

Nov 26
Explain Java Logo

Many java beginners have a confusion about what is the difference between String, StringBuffer, and StringBuilder classes and which class we should use out of those three. Well, I personally prefer to use StringBuilder if we need to do many string concatenations. Let’s go in detail and see which one is better among the three [...]

written by Seetha Ram Janapala
Tags: core java, core java for beginners, core java tutorial, difference between String StringBuffer and StringBuilder, j2se 5.0, j2se tutorial, java strings, java strings immutable, java strings tutorial, memory leaks, String vs StringBuffer vs StringBuilder, StringBuffer, stringbuffer examples, stringbuffer stringbuilder tutorial, StringBuilder, stringbuilder examples, tostring example

Jun 10
Palindrome

In this core java beginners tutorial, let us write a simple java program to check whether a given number or string is palindrome or not without using built-in reverse() method of StringBuilder or StringBuffer. Later we can execute the program and check the output for different numbers and strings. What is a palindrome Number or [...]

written by Seetha Ram Janapala
Tags: core java for beginners, core java tutorial, j2se, j2se 5.0, java programming scanner, java strings, palindrome, palindrome algorithm, palindrome check with output, palindrome examples, palindrome java program, palindrome number, palindrome string, reverse of a number, reverse of a string, StringBuilder, stringbuilder examples

Jun 05
Reverse Of Number

In this beginners tutorial, let us write a basic java program to find reverse of a given number and string. After that, we can run the program and see the output for different numbers and strings. Example Java Source Code to find reverse of a given number & string import java.util.*; public class RevNumString { [...]

written by Seetha Ram Janapala
Tags: core java for beginners, core java tutorial, find the reverse of string, how to reverse a number, j2se, j2se 5.0, java programming scanner, java strings, printf, reverse number algorithm, reverse number with output, reverse of a number, reverse of a string, sample java programs, scanner, simple java programs, simple string programs in java, StringBuilder, stringbuilder examples, tostring, what is scanner in java programming

May 07
Explain Java Logo

Character Wrapper Class is as important as any other wrapper class in Java. In this character wrapper class tutorial, let’s go through different API methods & constructors of Character Wrapper Class along with suitable examples. API Methods of Character Wrapper Class in java Like other wrapper classes, Character wrapper class has char charValue() method which [...]

written by Seetha Ram Janapala
Tags: character wrapper class in java, core java for beginners, core java tutorial, j2se 5.0, java character api methods, java character constructor, java primitive wrapper types, primitive wrapper classes in java, wrapper class advantages in java, wrapper class constructors, wrapper class conversions, wrapper class functions, wrapper class methods in java, wrapper classes in java with example, wrapper data types in java, wrapper objects in java, wrapper types in java

May 02
Java Integer Wrapper Class Tutorial: API Methods and Constructors

Integer Wrapper Class is the most important among all wrapper classes in Java. In this integer wrapper class tutorial, let’s go through different API methods & constructors of Integer Wrapper Class which are useful for different conversions between strings, numeric primitive data types & wrapper classes/wrapper data types along with suitable examples. The below diagram [...]

written by Seetha Ram Janapala
Tags: core java for beginners, core java tutorial, int to string, integer constructor, integer to string, integer wrapper class java example, j2se 5.0, java integer api methods, java primitive wrapper types, primitive wrapper classes in java, string to int, string to integer, wrapper class constructors, wrapper class conversions, wrapper class functions, wrapper class methods in java, wrapper classes in java with example, wrapper data types in java, wrapper objects in java, wrapper types in java

Apr 25
Wrapper Classes - Number Hierarchy

In this primitive wrapper class tutorial, let’s take a look at different API methods & constructors of primitive wrapper classes such as Byte, Short, Long, Float, Double, and Boolean which are used for conversions between strings, primitive data types & wrapper classes/wrapper data types along with suitable examples. Methods of Integer wrapper class can be [...]

written by Seetha Ram Janapala
Tags: boolean constructor, character wrapper class in java, core java for beginners, core java tutorial, features of wrapper class in java, j2se 5.0, java boolean api methods, java byte constructor, java byte methods api, java double constructor, java double methods api, java float api methods, java float constructor, java long constructor, java primitive wrapper types, java short constructor, java wrapper classes and boxing, long api methods, primitive wrapper classes in java, short api methods, wrapper class advantages in java, wrapper class constructors, wrapper class conversions, wrapper class functions, wrapper class methods in java, wrapper classes in java with example, wrapper data types in java, wrapper objects in java, wrapper types in java

Apr 12
Wrapper Class Hierarchy Diagram

In this java wrapper class tutorial, you will see definition of wrapper class with examples. What is a wrapper class in java? Explain with examples. In Java, a wrapper class is defined as a class in which a primitive value is wrapped up. These primitive wrapper classes are used to represent primitive data type values [...]

written by Seetha Ram Janapala
Tags: application of wrapper classes in java, boolean wrapper class, character wrapper class, character wrapper class in java, core java for beginners, core java tutorial, define wrapper class, example of wrapper class in java, features of wrapper class in java, integer wrapper class, integer wrapper class in java, integer wrapper class java, integer wrapper class java example, j2se 5.0, java wrapper class, java wrapper class example, java wrapper classes, list of wrapper classes in java, primitive wrapper class, primitive wrapper classes in java, purpose of wrapper class in java, usage of wrapper classes in java, use of wrapper class, use of wrapper class in java, uses of wrapper classes, wrapper class, wrapper class advantages in java, wrapper class definition, wrapper class example, wrapper class example in java, wrapper class in java, wrapper class in java example, wrapper class in java with example, wrapper class java, wrapper class tutorial, wrapper classes, wrapper classes in java, wrapper classes java