Home » Archives for Venkat-Raman Nagarajan » Page 2

Author Archives: Venkat-Raman Nagarajan

Avatar photo
Venkat works for a major IT firm in India and has more than a decade of experience working and managing Java projects for a banking client.

How to fix cannot find symbol Java Error

Bipartite Graph

We would have come across the error – Cannot find symbol when compiling our Java classes. In this article, let us look at some common causes and how to avoid them. 1. Cannot find symbol Java error This compilation error occurs when the compiler is unable to get an identifier declared in the code. Some of the usual causes could ...

Read More »

Dynamic Array Java Example

Bipartite Graph

An Array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. The length is fixed after creation. In this article, we will show Java dynamic arrays. A dynamic array is a variable-size list data structure that allows elements to be added or ...

Read More »

Java Constant Example

Bipartite Graph

A Java constant is used to represent a value that cannot be changed after the assignment. Constants make a program more readable and can take the modifiers static and final. Let us look into some examples for Java constants, constants definition, and their best practices in this article. 1. Java constants definition examples and best practices 1.1 Usage of final ...

Read More »

Int to char Java Example

Bipartite Graph

This article talks about how to convert int to char in Java. We will start with the basics of data types and then we will see the conversion of int to char with some examples. 1. Data types in Java Java is a strong statically typed language. This means that every variable and every expression has a type that is ...

Read More »

How to Fix Java Error Code 1618

Bipartite Graph

Most of us would have faced the Java Error Code 1618 while installing or updating Java. The issue is commonly noticed during the installation of Java versions 7 and 8. The error indicates that another installation is in progress. It may be a java version or any other installation that uses Windows installer. In this article, we shall see some ...

Read More »

Java JFrame Example

Bipartite Graph

In this article, we include a Java JFrame tutorial through examples. We will discuss some of the main methods and how JFrame and other main classes like JPanel, JLabel, and JButton fit into the Swing hierarchy. We will then create a simple GUI using the javax.swing package. 1. Introduction JFC (Java foundation classes) encompasses a group of features for building ...

Read More »

Java random number generator Example

Bipartite Graph

Java provides us the opportunity to generate pseudo-random numbers by using a random object generator (Random class). We will look at the below ways in this article: by using Math.random()by using Randomby using ThreadLocalRandom 1. Usage of Math.random() Java provides us Math class, which includes methods with basic numeric operations such as logarithm, square root, etc. One of these methods is random(), which ...

Read More »