Methods and Arrays

Arrays in Java

In this tutorial, we will learn about Arrays in Java. Till now we learned about variables. We know in a variable we can store a value, for example, int num=10; Here num is variable of int type in which we can store an integer value. but suppose you want to store 100 values. It means you …

Arrays in Java Read More »

Methods in Java

In this tutorial, we will learn about Methods in Java. A method is a small piece(block) of code which can perform some special task and it only executes when we call this method. The method allows us to reuse code. Here we will learn how to create a Method and How to call a method in …

Methods in Java Read More »