Thursday , January 18 2018
Home / Java Programming / Programming Fundamentals

Programming Fundamentals

Maximum and Minimum from an array, How to find ?

How to find maximum and minimum from an array? Problem Statement: Consider a one-dimension integer array of 10 elements filled by a user at runtime and then find the maximum and minimum of these elements and display it. import java.util.Scanner ; public class MaxArray { public static void main(String[] args) …

Read More »

Static and Dynamic Arrays

What is difference between Static and Dynamic Arrays: Static simply means fixed and dynamic simply means having changing behavior. So in case of Static Arrays the maximum size of the arrays should be declared at the time of array creation. While the dynamic arrays can adapt the size on the …

Read More »

Quiz Java Arrays

Quiz Java Arrays You must know what are Arrays? How to Declare and Create Arrays? You must have enough practice program examples Using Arrays. You must know the mechanism of Passing Arrays to Methods. Create a Class ResultBook Using an Array to Store the Students Grades. What are Multidimensional Arrays? …

Read More »

Java Scanner

Use of Java Scanner API: import java.util.Scanner; public class JavaScanner { public static void main(String[ ] args) { // create a object of java scanner class Scanner sc = new Scanner(; // get the integer input from a user and store it in variable num int num = sc.nextInt( ); …

Read More »