493 Answered Questions for the topic Java
05/09/20
Computer Science
is a lender's term, an acronym, for a borrower's payments which together should not exceed 38% of your gross income?
05/09/20
Computer Science question
What is coercion and casting; specifically the order in which it happens (left to right) and what data types can be coerced into what others. Evaluate a sum of data elements. Understand a string...
more
05/09/20
Computer Science Review Question
UML class diagram, what are the access modifier symbols, the class types, and the return values?
05/09/20
Computer Science Review Question
what code produces a reference copy, a shallow copy, and a deep copy?
05/09/20
I need some help with this Computer Science question
What does Random do? (Java) and in General
05/07/20
LinkedList Java
Imagine we have to create a Linked list with 5,8 as elements and at first before adding them head should pointed to null. And since 8 is the last element, next of 8 also should point to a null.How...
more
05/04/20
Need some help with method I was working on i need to return HighestColumn index of Jagged 2d array as a int
what I need to do getHighestInColumnIndexpublic static int getHighestInColumnIndex(double[][] data,int col)Returns index of the largest element of the selected column in the two dimensional...
more
05/04/20
Need some help with ragged array method I was working on I need some help with explaining method
getHighestInColumnIndexpublic static int getHighestInColumnIndex(double[][] data,int col)Returns index of the largest element of the selected column in the two dimensional array index 0 refers...
more
Java Computer Science
05/04/20
Need help with ragged Array method I have been working on for project
getHighestInColumnpublic static double getHighestInColumn(double[][] data,int col)Returns the largest element of the selected column in the two dimensional array index 0 refers to the first...
more
Java Programming
05/03/20
Needing help on Java
Create a Java GUI solution to the following scenario:Develop a set of classes for a business to use with various Employee functions. Create a Person class object that contains data members for...
more
05/01/20
Any java expert who knows the corecct answers for these?
Q1:charAt() is used to obtain a character at specified index?a)Trueb)FalesQ2:The java program is enclosed in a class definition ?a)Trueb)FalesQ3:The for loop repeats a set of statements a certain...
more
04/30/20
Text analyzer & modifier (Java)
(1) Prompt the user to enter a string of their choosing. Output the string. (1 pt)Ex:
Enter a sentence or phrase:
The only thing we have to fear is fear itself.
You entered: The only thing we have...
more
04/30/20
Your program must define and call the following function. The function should return true if the input year is a leap year and false otherwise. (Java)
A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes...
more
Java Computer Science
04/30/20
Need help understanding this method
writeToFilepublic static void writeToFile(double[][] data,java.io.File outputFile)throws java.io.FileNotFoundExceptionWrites the ragged array of doubles into the file. Each row is on a...
more
Java Computer Science
04/30/20
Need Help understanding method
public static double[][] readFile(java.io.File file)throws java.io.FileNotFoundExceptionReads from a file and returns a ragged array of doubles The maximum rows is 10 and the maximum columns...
more
04/29/20
Plz help whats the correct answers for these java questions?(part2) ASAP!!
Q21:float is the type that denotes floating-point numbers that can have fractional parts?a)Trueb)FalesQ22:instance variables that are numbers are initialized to null default value?a)Trueb)FalesQ23:...
more
04/21/20
AP Computer Science A
/*
This question involves the creation of user names for an online system. A user name is created based on a user’s first and last names. A new user name cannot be a duplicate of a user name...
more
04/20/20
How do I solve this program? The program is to find the prime factors of a number. The answer I keep getting is 0. If you need the directions respond.
import javax.swing.JOptionPane;public class FactorGeneratorTest{ public static void main(String[] args) { String input =JOptionPane.showInputDialog("Enter a positive number, (cancel to...
more
Java
04/14/20
Code this java question fast please
Code a static inner class called FunctionComposition that is parameterized by three type parameters. Thisclass should have no methods, and no constructor. It should only have a single BiFunction...
more
04/13/20
Given the interface please code the zip function
INTERFACE
import java.util.function.BiFunction;
interface NamedBiFunction extends java.util.function.BiFunction //nested interface that extends from java.util.function.BiFunction
{
...
more
04/13/20
Please implement the following function in Java using a single method chain
This function is called the least element. In this function, the single method chain can return a java.util.Optional<T>. So you must write additional code to convert it to an object of type T...
more
04/11/20
AVL Trees - Java Data Structures & Algorithms
Can someone help with this AVL tree deletion?Delete 7,5,9 from the following AVL tree?AVL tree represented as an array(note that null denotes nodes with no values)9, 5, 12, 3, 6, 11, 14, 2, 4,...
more
04/07/20
Computer Science Tree Question
Hello,I am currently attempting to complete a project for my computer science class and we have to implement a ternary tree as a sort of database of different cat objects. I know that my method to...
more
04/05/20
Write True or False for each of the following statements. (Corecct if fales)
1 If a method does not return a value, the return value type must be static. 2 The expression !(true || true && false || !true) is evaluated to true. 3 Every array has a length that...
more
04/05/20
Find and correct the error(s) in each of the following code fragments :
1. The following code should create an integer array and increment all the array elements by 1:int[] a = new int[5]; for( int i=0; i <= a.length; i++ ) ++a;2. The following code should compare...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.