Java – How to find Square of a Number

Java – How to find Square of a Number

It’s a very basic question not in terms of programming but in maths as well. In this post, we will learn how to square a number in Java using different ways. We are going to use either: By multiplying the number with itself By using Math.pow() Java 8 Arithmetic...
JAVA 8 – New Math Methods

JAVA 8 – New Math Methods

Whenever we talk about Java 8, what comes in mind most often is ‘Lambda’ and ‘Streams’. Am I wrong? I don’t think so. Although these are the most prominent features that came with Java 8, there are other key things that came along too....