Skip to content

omunite215/NPTEL-Programming-in-Java-Ultimate-Guide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java :Q1 Complete the following program that is intended to find and print the minimum value stored in an array 'arr[]'. Note: Integer array 'arr[]' is already defined and initialized

Java :Q2 In the following program, an array of type integer (arr[]) is declared. The array can store any integer value. Complete the program to print the average value of all the odd numbers stored in the array (arr[] ). Note: Integer type array 'arr[]' is already defined and initialized. Use double type variables wherever applicable.

Java Week 12:Q3 An interface "Square" is defined in the following program. You have to declare a class "A", which will implement the interface "Square". Note that the method " findSquare(n)" will return the square of the number n.

Java Week 12:Q4 Complete the following program that is intended to find and print the the first element that is strictly greater than given element in an sorted array 'arr[]'. If there is no such element then print "-1". Note: Integer array 'arr[]' is already defined and initialized

Java Week 12:Q5 Complete the following program that is intended to find and print the duplicate elements in an array 'arr[]'. Note: Integer array 'arr[]' is already defined and initialized