-->
Skip to main content

Posts

Convert String Array to int array in java [2021]

Convert String Array to int array in java [2021] In today's programming world, We generally need to Convert String Array to int Array in Java, In this tutorial, we will cover  how to convert String Array to int Array in Java  using two approaches. Using the  Integer.parseInt method  of Integer class. Using the Stream API of Java 8.  Earlier we have covered different conversions like  Convert to String from Byte Array In Java ,  Convert String to Byte Array in Java  and  Convert Between Java Byte Array to Object In Java , Convert String to Array In Java  which is also similar to our current requirement. Let's dive in for our current tutorial... Convert String Array to int Array  1. Using Integer.parseInt method with for loop     We can convert String array to int array simply iterating one element at a time and then parsing that element to int form with the help of Integer.parseInt method.   Example : import java.uti...

Single Dimensional Array In Java [2021]

Single Dimensional Array In Java [2021] This article will discuss all the details of the single dimensional array in java or one dimensional array in java . An array is a collection of similar type of elements which has contiguous memory location.  Single Dimensional Array in java is always used with only one subscript([]). A Single dimensional array behaves likes a list of variables. Array in Java is index-based, the first element of the array is stored at the 0th index, the 2nd element is stored on 1st index, and so on. Declaration of Single dimensional array in java To use anything in java, we must first declare it so to use array as well, we must declare it. Like normal variables, we must provide the data type of array and name of an array. Data type means the type of data we want to store in it. Then a name through which we will access the array elements. datatype[] arrayName; Or datatype arrayName[]; Or datatype []arrayName; datatype -- It is either primitive...

NIIT Technologies Java Interview Questions for Experienced (3+)

NIIT Technologies Java Interview Questions for Experienced Today we will discuss NIIT Technologies Java Interview Questions for experienced developers having 3+ Years of Experience. In the earlier post, we had discussed  IRIS Software Interview Questions in Java ,  Kent CamEye Interview Questions in Java , and Fiserv Interview questions in Java .   Let's see the NIIT Java developer interview questions now... These questions are solely on the basis of the face-to-face interview given by people and collected thereafter. So let's get started... NIIT Java Interview Questions Face to Face Rounds      Core Java Interview Questions Write a program to print Fibonacci Series using recursion? What is the difference between hashtable and hashmap? How concurrency handles in the hashtable and hashmap? Is there any other alternative for concurrent collections in java?     Spring Interview Questions What is a Spring transaction? What is DI/IOC and what...