Core java Archive

Java Format number as currency

In this post, we are going to see how to format currency in java. We can format number into Currency by using NumberFormat class.We need to call NumberFormat.getInstance()  to get NumberFormat object by passing specified locale. …

Java String matches example

In this post, we are going to see String’s matches method. String’s matches method String matches method is used to check whether the string is matched with the given regular expression.In normal terms, we can …

Java Convert List to String

In this post, we will see how to convert List to String in java. Following are the ways to convert list into String: Using StringBuilder We can use StringBuilder class to convert List to String.StringBuilder …

Java Convert Array to List

In this post, we will see how to convert array to list in java. There are may ways to convert array to list: By using Arrays.asList(): This is an easy method to convert Array into …

Java convert List to Array

There are many ways to convert List into Array: Using toArray() method We can use toArray method to convert List to String. We can either pass a array of size as List’s length or we …

5 SOLID Principles in Java

In this post, we will see 5 SOLID Principles in Java. Robert C. Martin gave five objected oriented design principles, and the acronym “S.O.L.I.D” is used for it. Each letter of this acronym talks about principles …

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog