Java Articles, Tutorials & News

Java.util.Random Class

Java.util package provides a Random class. An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. The algorithms implemented by class Random use …

Read more »

About Upgrading to Java 11 for vs Code for Java

Since the introduction of Java 11 requirement for running VS Code for Java, we have constantly heard from our users that they thought Java 8 is no longer supported, which is NOT true. In this blog, we will explain the requirement itself and provide steps …

Read more »

Get the Mean of an Array in Java

The challenge It’s the academic year’s end, fateful moment of your school report. The averages must be calculated. All the students come to you and entreat you to calculate their average for them. Easy ! You just need to write a script. Return the average…

Read more »

Write your first AWS Lambda in Java

So far I have been writing Lambda function in Python for all my AWS projects . In Python its easy, just import boto3 module and starting coding. Things are bit different when you write Lambda handlers in Java. Lets explore and see how you can write …

Read more »

How to Tell Time in Java’s Garbage Collection

Introduction As I wrap up my internship with Microsoft this summer, I have discovered the value in being confused. The more I learned, the more some things became clearer and the more other things became cloudier. In the end, I am left with a headache of …

Read more »

How to Tell Time in Java’s Garbage Collection

Introduction As I wrap up my internship with Microsoft this summer, I have discovered the value in being confused. The more I learned, the more some things became clearer and the more other things became cloudier. In the end, I am left with a headache of …

Read more »

Character with Longest Consecutive Repetition in Java

The challenge For a given string s find the character c (or C) with longest consecutive repetition and return: where l (or L) is the length of the repetition. If there are two or more characters with the same l return the first in order of appearance. For…

Read more »