Java

If you are a software engineer, then you must be familiar with the concept of programming. It is one of the essential requirements if you are seeking employment in a software company. In order to ace an interview that involves programming, there are two things that you should have. First is great logical reasoning and […]

In response to one of our readers, we have written this Java Program to find the Frequency of a given Letter in Text. You can read Java Program to Count Frequency of Words in given Text here. In this program we are taking a String input for Text and another String input for Letter to […]

Java Program to perform Matrix Multiplication

Thumbnail image for Java Program to perform Matrix Multiplication March 16, 2014

Earlier we have discussed Java Program to perform Matrix Addition, we’ll discuss about Java program to perform Matrix Multiplication. Matrix Multiplication is a mathematical operation in which we take two matrices arrays and perform multiplication between them to produce the resultant matrix array. So how to do the Matrix Multiplication? What are the rules? The […]

Read the full article →

Java Program to Print Name in Right angled Triangle

February 27, 2014

In this article we are using a for loop to print the Name in the form of a right angled Triangle. Download Source Code Java Program to Print Name in Right angled Triangle Output:

Read the full article →

Java Program to count number of Vowels present in a String

February 25, 2014

In this article we are going to explain a Java Program to count number of Vowels present in a String. We have previously written this program in C Language, you can read it here. In this program we have defined a character array and initialized it with the vowels as data items ‘a, e, i, […]

Read the full article →

Java Program to check if String is Palindrome or not using Command Line Input

February 23, 2014

We have already written Java Program to check String is Palindrome or Not, now in this article we are going to describe Java Program to check if a String is Palindrome or not using Command Line Input. This program also checks whether a sentence is a Palindrome or not. When a string or sentence is […]

Read the full article →

Enhanced For Loop in Java

January 20, 2014

Enhanced For Loop is a for loop which is useful for scanning the elements in an array. There are many advantages like readability, clarity, you don’t need to know the current index, scanning elements from first-to-last. It is simple but doesn’t have flexibility like the traditional for loop. Enhanced For Loop in Java for(Data-type variable_name […]

Read the full article →

Java Program to catch ArrayIndexOutOfBoundsException

December 31, 2013

ArrayIndexOutOfBoundsException is triggered whenever an user try to store data out of the index of an array. For example, if the size of the array is 5, so that you can store atmost 6 values in that array (0,1,2,3,4,5), if the user wants to store the data in the 6th position of the array, it […]

Read the full article →

Java Program to implement Thread Synchronization

December 22, 2013

Thread is a light weight process. Threads are economical to create and destroy. Here in this program context if two threads A & B are present, if A is executing then B will not interrupt method that Thread A is using until it has completed its execution, i.e., if two threads are present and they […]

Read the full article →

Java Program to Insert Data into a File using FileOutputStream

December 1, 2013

In this tutorial we will explain how to store / insert Data into a File. To perform file operations we will need FileInputStream and FileOutputStream of Byte stream class, they handle the files Byte-by-Byte. FileInputStream is used to read contents from a file and FileOutputStream is used to write contents to a file. FileOutputStream creates […]

Read the full article →