![Incorrect Question 10 0 13 pts Which of the following lines of Java calls a method called myMethod that is public and static, returns a 1D integer array, and passes a 2D array of double as a parameter: int] iArray myMethod(dArrayD0) int iArray-myMethod(dArray) int iArray myMethod(doublel0 dArray) nt iArray myMethod(dArray); nt iArray- myMethod(dArray[O]IO);](http://img.homeworklib.com/questions/58c23280-a51f-11ea-89c7-edda12e3c1f4.png?x-oss-process=image/resize,w_560)

Please answer these two questions with explanations. I do not know why my answers are wrong.
10) int[] iArray = myMethod(dArray); Explanation: ------------ dArray is a double array. so, we can call dArray directly without any [] 11) only objects and array variables send reference to a method. so, String variable of type String Object variables of type Scanner, etc.. Array variable of type int[], double[], etc..
Please answer these two questions with explanations. I do not know why my answers are wrong....
I need java code for the following problem.
Lab 7: Methods 1. Write a Java program called Numbers that calls the following methods and displays the returned value: Write a method called cubelt that accepts one integer parameter and returns the value raised to the third power as an integer. o Write a method called randominRange that accepts two integer parameters representing a range. The method returns a random integer in the specified range inclusive. 2. o Write a method...
Below is my code and the instructions for the code. I can't figure out what's wrong. Please help. Tasks This lab has two parts: Writing a searching function for 1D arrays. Writing a simple class. Part 1 – Searching Continuing with arrays, we will now expect you to find information in an array and derive useful properties from the information stored in an array. Start Eclipse. Change the workspace directory location to something "safe". You may want to temporarily choose...
//please help
I can’t figure out how to print and can’t get the random numbers to
print. Please help, I have the prompt attached. Thanks
import java.util.*;
public
class
Test
{
/**
Main method */
public
static
void main(String[]
args)
{
double[][]
matrix
=
getMatrix();
//
Display the sum of each column
for
(int
col
= 0;
col
<
matrix[0].length;
col++)
{
System.out.println(
"Sum
" + col
+
" is
" +
sumColumn(matrix,
col));
}
}
/**
getMatrix initializes an...
I am working on my java but I keep getting this one wrong.
Method Name: arrayContains Access modifier: Private Parameters: 1 integer named number Return type: boolean Purpose: This method returns a true or a false indicating if the number is present in an array or not. In order for this method to work, there must be an array already declared. Therefore, in the CLASS BLOCK, declare an array as follows: static int[] listof Numbers = {1, 2, 3, 4,...
Using java fix the code I implemented so that it passes the JUnit Tests. MATRIX3 public class Matrix3 { private double[][] matrix; /** * Creates a 3x3 matrix from an 2D array * @param v array containing 3 components of the desired vector */ public Matrix3(double[][] array) { this.matrix = array; } /** * Clones an existing matrix * @param old an existing Matrix3 object */ public Matrix3(Matrix3 old) { matrix = new double[old.matrix.length][]; for(int i = 0; i <...
Please help me with my JAVA programming Exercise. a. The Talk-A-Lot Cell Phone Company provides phone services for its customers. Create an abstract class named PhoneCall that includes a String field for a phone number and a double field for the price of the call. Also include a constructor that requires a phone number parameter and that sets the price to 0.0. Include a set method for the price. Also include three abstract get methods—one that returns the phone number,...
Two questions, 1) how do I do this, 2) what is wrong with my
code
norm krumpe@muohio.edu program11 even Positions prev I next chance Given an array of integer values, return a new array consisting only of the elements that have even- numbered indexes. even Positions([7, 51) [7] even Positions([8, 1, 7, 4, 6, 10, 5]) [8, 7, 6, 51 evenPositions([13]) [13] Save, Compile, Run Go int[1 even Positions(int[] nums) int[] newArrays new int[nums. length/2]; for (int i 0; iknums.length;...
Java please answer A to I please dont type the answer on
paper please use the computer
A. Explain why alpha cannot be accessed by other
members of its class.
B. In the program, how can you determine the type of
access modifier?
C. Describe the differences and similarities of beta
and gamma in program, within the context of access specifiers and
class member accessibility.
D. Explain how objects, a and b, are passed to the
method.
E. Why...
Can someone help me with the main class of my code. Here is the assignment notes. Implement project assignment �1� at the end of chapter 18 on page 545 in the textbook. Use the definition shown below for the "jumpSearch" method of the SkipSearch class. Notice that the method is delcared static. Therefore, you do not need to create a new instance of the object before the method is called. Simply use "SkipSearch.jumpSearch(...)" with the appropriate 4 parameter values. When...
Please complete the following programming with clear explanations. Thanks! Homework 1 – Programming with Java: What This Assignment Is About? Classes (methods and attributes) • Objects Arrays of Primitive Values Arrays of Objects Recursion for and if Statements Selection Sort Use the following Guidelines: Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc.) Use upper case for constants. • Use title case (first letter is upper case) for classes. Use lower case with uppercase...