Core java
24 OctoberJava add to array
In this post, we will see how to add elements to the array. Using Apache’s common lang library You can use varargs add method to add elements to array dynamically. Here are the few add overloaded methods provided by ArrayUtils class If you want to add more than one element, you can use ArrayUtils’s addAll […]
22 OctoberWhy wait(), notify() And notifyAll() methods are in Object Class
In this post, we will see why wait(), notify() And notifyAll() methods are in Object Class And Not in Thread Class. This is one of the most asked java multithreading interview questions. You might know that wait(), notify() And notifyAll() Methods are in Object class and do you know the reason for the same? Let’s […]
21 OctoberHow to Sort HashSet in Java
In this post, we will see how to sort HashSet in java. HashSet is a collection which does not store elements in any order. You might come across a situation where you need to sort HashSet. There can be many ways to sort HashSet, we will see two methods here. Using TreeSet You can use […]
21 OctoberDifference between equals() and == in java
In this post, we will see about the difference between equals and == in java. This is most asked java interview question for fresher or 2-year experienced java developer and it might be confusing sometimes. Let’s try to understand each quickly. Equality operator “==” Equality operator can be used to compare primitives but when you […]
20 OctoberJava Array to Set
In this post, we will learn java array to set conversion. There are many ways to convert array to set. 1. Using Java 8’s Stream If you are using Java 8, I would recommend using Java 8 Stream. [crayon-6a2999d9ec524963510873/] Output [John, Martin, Mary] 2. Using HashSet constructor() We can directly call HashSet‘s constructor for java […]
16 OctoberCustom BlockingQueue implementation in java
In this post, we will see how to create your own custom BlockingQueue. This is one of the most asked java interview questions. You need to implement your own BlockingQueue. This question helps interviewer to get your understanding of multithreading concepts. Here is simple implementation of BlockingQueue. We will use array to store elements in […]
09 OctoberStake.hu regisztráció és bónusz számolás – Teljes útmutató
A regisztráció egy online kaszinóban gyors, de ha pontosan tudod, mire számÃthatsz az egyes lépéseknél, idÅ‘t és frusztrációt takarÃtasz meg. Ez az útmutató lépésrÅ‘l lépésre bemutatja, hogyan hozhatsz létre fiókot a Stake Casinón, hogyan számolhatod ki a bónuszodat, és milyen biztonsági intézkedésekkel találkozhatsz. Gyors ellenÅ‘rzÅ‘lista EllenÅ‘rizd a rendszerkövetelményeket (stabil internet, friss böngészÅ‘) KészÃtsd elÅ‘ a […]
08 OctoberEnergycasino regisztrációs útmutató – bónuszok és pörgetések kiszámÃtása
MielÅ‘tt bármely online kaszinóban befizetnél, szánj öt percet ennek az ellenÅ‘rzÅ‘listának az átolvasására – ez lefedi azokat a lépéseket, amelyeket a legtöbb játékos kihagy. Ez az útmutató pontosan bemutatja, hogyan regisztrálj, hogyan igényeld az Energycasino 10 free spins ajánlatot, és hogyan számold ki a bónuszok valódi értékét. ElÅ‘feltételek Érvényes e-mail cÃm – a regisztráció megerÅ‘sÃtéséhez […]
05 OctoberJava FileReader Example
The FileReader class of java.io package provides a seamless and easy-to-use way to read and analyse the contents of a file using Java. The FileReader class, works similar to the FileInputStream class because it reads the file data as a stream. However, unlike the latter which reads files as a stream of bytes, FileReader reads […]