Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help solve this by using JAVA program. Please read the directions properly and show me the output. Thanks in advance! For each of the

Please help solve this by using JAVA program.
Please read the directions properly and show me the output.
image text in transcribed
image text in transcribed
Thanks in advance!
For each of the following problems, write a method that solves the problem. Demo each by calling it in the main method. 1 Is Sorted Wite a method isSortedO) which takes in an atrly of tategers and returns true if the numbers are sorted from smallest to largest. 2 Round All Up Create a method called roundAllUpO, which takes in an array of doubles and returns a new array of integers. This returned array contains all the numbers from the array of doubles, but rounded up. Below are some example input- output pairs [1.0. 3.5, 3.2, 4.1.445 3 Generate Triangle Numbers Write a method called generateTriangleNuabers). This method will take in an integer x and will return an array of integers containing the first x triangle numbers. The nth triangle number is the sum of 1 + 2+3 +4...(n 1) + n Some example input-output pairs 3 -> t1, 3, 61 1 > 11) 7-9(1, 3, 6, 10, 15, 21, 28] 4 Reverse All Strings Write a method called reverseA11). This method will take in an array of Strings and modify the array so that all the Strings in the array are reversed. Because this method modifies the contents of the array being passed in, it does not return anything. An example

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

Step: 3

blur-text-image

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions