Methods ii.) Define and implement a method that takes a string array as a parameter and returns the length of the shortest and the longest strings in the array i.) Write a method that take an integer array as a parameter and returns the sum of positive odd numbers and sum of positive even numbers. iii.) Implements the sequential search method that takes and array of integers and the item to be search as parameters and returns true if the item to be searched in the array, return false otherwise

Answers

Answer 1

Answer:

Explanation:

Well I am sorry I don't know the answer anyway.


Related Questions

when working with smart which tab would provide the ability to change the shape or size of the smart art shapes

Answers

It doesn’t change shape

Answer:

B) Format

Explanation:

I need help Asap!!! So the question is "Compare and contrast Web page and Websites". ​

Answers

Answer:

A website is a mix of web pages while a web page is a single entity.

Explanation:

Write code to take two words from the user. The program should convert these to lower case, then compare them: printing a positive number if string1 appears after string2 alphabetically, a negative number if string1 appears before string2 alphabetically and zero if the two strings are identical. Make sure your program does not produce any additional numerical output other than this number or it may not be graded correctly.

Answers

Answer:

Use compareTo.

Explanation:

import java.util.Scanner;

public class U2_L3_Activity_Three{

 public static void main(String[] args){

   Scanner scan = new Scanner(System.in);

   System.out.println("Enter first word: ");

   String word1 = scan.nextLine();

   System.out.println("Enter second word: ");

   String word2 = scan.nextLine();

//I had to make the string all lowercase or all uppercase for when I did this

   word1 = word1.toLowerCase();

   word2 = word2.toLowerCase();

   System.out.println("Result: " + word1.compareTo(word2));

 }

}

Following are the program to converting string value into lowercase and compare with an input string value.

Program Explanation:

Import package.Defining a class Dat.Inside the class defining the main method, and in the method, two string variable "string1, string2" is declared.After input, the value a "toLowerCase" method is used that converts string value into lower case.  After converting value into the lower case a "compareTo" method is used that compares value and prints its value.

Program:

import java.util.*;//import package for input  

public class Dat //defining a Dat

{

public static void main(String[] ax)//main method

{

String string1 ,string2; //defining String variable

Scanner sc = new Scanner(System.in);//creating Scanner class object to input value

System.out.println("Enter values: ");//print message

string1= sc.next();//input value

string2= sc.next();//input value

string1= string1.toLowerCase();//convert string value into LowerCase  

string2 = string2.toLowerCase();//convert string value into LowerCase

System.out.println("Result: " + string1.compareTo(string2));//using compareTo method

}

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/15706308

1, How can technology serve to promote or restrict human rights? [2 points]

Answers

Answer:

Examples of how technology can be used as a powerful tool for human rights are ever expanding. Newer technologies such as artificial intelligence, automation, and blockchain have the potential to make significant positive contributions to the promotion and protection of human rights.

Other Questions
Si una persona compra diariamente 2 1/2 de carne Cuntos kilogramos de carne habr comprado en 6 das? -15 kilos -16 kilos -17 kilos -20 kilos 1/6(x + 6) = 11 What is x I need help with this ASAP. Thank you for the help The nitrogen base pattern determines how _____________ is replicated. Why did Franklin Roosevelt's stand on labor nearly backfire? How many carbon (C) atoms are in CaCO3? 3. What part of your eye is responsible for regulating the amount of light that enters your eye? Lines 6667, The hope only / Of empty men, refer to the hope for a.spiritual salvationc.health, wealth, and prosperityb.long lifed.artistic achievementPlease select the best answer from the choices providedABCDMark this and return During this pandemictl the sales of alcohol increased in Linda's stop shop from 120 boxes to 150 boxes. What is the precent of increase? I need help on this please I need a summary for this poem Nmero de departamento vendidos en un edificio cualitativa o cuantitativa. At cycle and sport, customers can rents bikes, electric scooters, kayaks, canoes, or paddle boards by the hour. Mr Thompson is renting a kayak and a paddle board for his family. He has a coupon for $10 off. Which expression represents the total cost for Mr. Thompson to rent a kayak for k hours and a paddle board for p hours.. multiply c by 9, then add 2 to the result What in a region can be affected by latitude, topography, altitude and closeness to a large body of water, jet streams and surface currents? Two unequal values that are compared using less than () signs. Single strand RNA is made using the genetic instructions from double strand DNA.Proteins are made from the instructions in RNA.TrueFalse A cell phone costs $750 and loses 28% of its value each year. Write an exponential decay function to represent this situation.1. f(x)= 750 0.72^x2. f(x)= 0.72 750^x3. f(x)= 750 0.28^x4. f(x)= 0.28 750^x i need help!!!! list the factors of -108 that equal to -3 is spirogyra a protist or thallophyta the heavier elements in the universe where formed by