Thursday , January 18 2018
Home / Java Programming

Java Programming

Java is a popular programming language for desktop applications and especially for internet applications. You can download latest Java here.

java logo

How to parse string in java?

How to parse string in java? Usually in natural language processing, a text is parsed. Parsing means the division of text into discrete set of words. These discrete parts are known as tokens. Each token has a specific semantic meanings. In Java the “StringTokenizer” class provides the parsing functionality. This …

Read More »

Maximum and Minimum from an array, How to find ?

How to find maximum and minimum from an array? Problem Statement: Consider a one-dimension integer array of 10 elements filled by a user at runtime and then find the maximum and minimum of these elements and display it. import java.util.Scanner ; public class MaxArray { public static void main(String[] args) …

Read More »

What is a constructor? How It is different from other methods?

What is a constructor? How It is different from other methods? What is a constructor: A constructor is a special method defined in a class implicitly or explicitly.  Its purpose is to initialize the instance variables of a class. How It is different from other methods? Differences between Constructor and …

Read More »

Static and Dynamic Arrays

What is difference between Static and Dynamic Arrays: Static simply means fixed and dynamic simply means having changing behavior. So in case of Static Arrays the maximum size of the arrays should be declared at the time of array creation. While the dynamic arrays can adapt the size on the …

Read More »