Java program to calculate harmonic value – In this article, we will learn the multiple ways to calculate the harmonic value in Java Programming. Suitable examples and sample programs have been included in order to make you understand simply. The compiler has also been added so that you can execute the programs yourself. The methods used in this article are ...
Read More »Author Archives: Writer - MK
Java: Volume Of Box Program | Java Programs
Java program to find the volume of box – In this article the java code is used for calculating the the volume of the box. The concepts are vividly explained to make it easier for you to learn. What is volume? Volume is a three dimensional space and is denoted by a standard unit of “meter” in physics. Volume is ...
Read More »Java Program To Calculate Median Array | 4 Methods
Java code To Calculate Median – In this article, we will brief in on the mentioned means to Finding the middle element in array. The following median code has been written in 4 different ways. If you have any doubts you can leave a comment here. The source code has written in: Using Standard Method Using Static Method Using Scanner ...
Read More »IRCTC API & Source Codes – Indian Railways API
IRCTC or the Indian Railways Catering and Tourism Corporation is the major online ticketing web portal which is primarily handled by the Indian Railways itself. It is the only official online portal to book train tickets online. The web portal is heavily encrypted. So, you need to create a profile in order to access the website completely and book tickets for ...
Read More »Java: Number of Days In A Month – 3 Ways | Java Programs
Java Program To Calculate Number of Days In A Month – In this article, we will detail in on how to calculate the number of days in a month in Java Programming. Suitable examples and sample programs have been included in order to make you understand simply. The compiler has also been added so that you can execute the programs ...
Read More »Parameterized Constructor In Java – Tutorial & Examples
What is Parameterized Constructor in Java – Tutorial & Examples – If we want to set some data to the constructor so that it can be used in the constructor then we can send so like Person r=new Person(10,20); to receive the values, the corresponding constructor should have formal arguments like. [crayon-686bcb59d402b602339690/] If we want to send three values to constructor ...
Read More »Java Constructor Chaining – Types & Example | Tutorials
Java Constructor Chaining – Calling one constructor from another constructor is generally referred to as constructor chaining. This can be achieved in two ways. this() super() in some cases we use only this(), in some other cases, we use only super(). Sometimes we use both (but not directly). Normal Java constructor calling (without chaining) When we create an object, its ...
Read More »Java Simple Generic Class – Tutorial & Programs
Generics is the mechanism of creating a class or method that works for any type of data. Here we covered the complete tutorial along with suitable examples and sample programs, Examples. Note: Generics work with objects (Integer, Double, String, etc) only. They cannot be used with primitive type data (int, double, etc). [crayon-686bcb59d4572792216800/] Output: [crayon-686bcb59d4576399513709/] In the above example, class ...
Read More »Oops Concepts In Java – Tutorial With Examples | Oops
Oops Concepts in Java complete tutorial & Types with sample examples & Programs. Also check the complete Java tutorials right here. There are different paradigms followed in writing programs (developing software) like the following… Sequential Programming. Procedure Oriented Programming. Object-Oriented Programming. Multi-tier Programming, etc To develop better software, programmers and managers concentrate on the aspects like the following. These people ...
Read More »Generic Class With Multiple Type Parameters In Java
How the generics work with multiple types: “Generics” mechanism allows us to work with a class (or method) that suits for any type of data. Suppose we want one Stack that holds Integer data and another Stack that holds String data then we need two different classes. With generics, we can write only one class that works for both the ...
Read More »