Powered by Blogger.
Showing posts with label Arrays. Show all posts
Showing posts with label Arrays. Show all posts

4 Ways to Reverse an Array in Java

>> Wednesday, August 20, 2014

Explain 'different ways to reverse an array' is one of the famous java interview questions. Using an array in programming is common with primitive types like e.g. int, long, double and String arrays to perform some operations. But to understand quickly we are using integer array with numbers to reverse. Actually we should know different types of arrays and how to iterate them. The basic programs on adding two matrices and multiplication of matrices is important .
four ways to reverse an array in java_JavabynataraJ

Read more..

matrix multiplication using arrays in java

>> Tuesday, August 12, 2014

Matrix Multiplication using arrays is very basic practice to learn for beginners to understand the concept of multidimensional matrix.Before to this you can check different types of arrays in java and get to know how to declare and define the arrays and also get practice with adding two matrices. Let me explain the matrix multiplication to understand in mathematical way and then we do the programmatically in java. Here we have some rules to follow for matrix multiplication.
matrix multiplication using arrays in java_JavabynataraJ
 Principles to follow matrix multiplication:

Read more..

Different types of Arrays in Java

>> Sunday, July 27, 2014

What is  an Array: Array is a data structure which can store collection of elements with same data type.

Why to use Array: In Real time, if you want to store different marks of a student, you no need to declare all the variables to store the marks like, marks1,marks2,marks3,..e.t.c based on their subjects count. But Instead of declaring n variables simply you can declaring an array to store all these values of same datatype.
Types of Arrays in Java_JavabynataraJ

Read more..

Java program to print word for the given number

>> Saturday, October 8, 2011

Converting a number to characters or to words as readable format in text will be done easily using arrays in java. Based on the given number we can write our logic. But here i am taking the number below to 10000. So we can complete our program easily. But sure, you will understand the logic. It is simple.using Fibonacci logic , using modulo operator and divider operator we can completer our program. This is important interview question and some of like, Reverse an array, matrix addition, matrix multiplication using arrays and prime number logic these are important for the java interviews.
Convert number to Word or Characters_JavabynataraJ
In this program we have to create two arrays one is ones array with the words of one,two,three.....nineteen. Then create another array with tens array contains ten,twenty,.....ninety.
Then write the given logic to convert a number into character.

Read more..

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2022. All rights reserved.