Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

Students also viewed these Databases questions