Question: do correctly in java 1) find the sum of elements present in the even position of the integer array Description: The Sum of numbers in
do correctly in java
1)
find the sum of elements present in the even position of the integer array
Description:
The Sum of numbers in the even positions of an array means the index of the array which is divisible by 2 is called as the even position and the sum of elements of the array present at these indexes will give the required sum.
Sample Input : arr[] = {15, 16, 12, 10, 18, 8}
Sample Output : 45
2) Minimum values in an array Sample Input : arr[] = {5, 6, 12, 1, 18, 8}
Sample Output : Minimum : 1
Maximum : 18
3)
Write a program to check if the given strings are equal or not. The code must be done in 4 approaches:
using equals()
using equalsIgnoreCase()
using compareTo()
without using the above 3
Sample Input :
String1 = Ramayana
String2 = Ramayana
Sample Output:
Strings Equal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
