493 Answered Questions for the topic Java
Java Javascript
01/21/23
How Does payment work with Wyzant
Do you manually have to pay a tutor for a lesson or it automatically charges your card? Also does your card get charged if a tutor cancels a lesson, or if a lesson gets cut short?
01/09/23
How to make object move 3 steps ahead randomly in any direction (JAVA)
The following code allows for a "bird" to move one step on GUI in any random direction. How do you make the bird move 3 steps ahead at once randomly in any direction?double r = Math.random(); if (r...
more
Java Computer Science
12/16/22
java question.
DATA BLOCK - city list and time difference from EST
String[] cities = { "London", "Paris", "Rome", "Seattle", "Tokyo" };
int[] timeDeltas = { 6, 7, 8, -3, -12 };
// TODO: create the ArrayList...
more
12/14/22
Two simple questions
29.What is the process called where, at execution time, the type of object to which a variable refers determines the actual method do use. 30.What keyword must a concrete class use in its...
more
Java Computer Science
12/14/22
Java questions.
16. True or False? As long as a superclass' constructors are declared as public, the subclasses will inherit the constructors when they extend that superclass.19. True or False? If a superclass...
more
Java Computer Science
12/14/22
java questions.
2. Which keyword is always a reference to the object in which it occurs?5. True or False? It is good practice to declare instance variables public, for easy access, and to declare getters and...
more
Java Computer Science
12/10/22
OBJECT-ORIENTED PROGRAMMING
use java• Use keyword extends to create a class that inherits attributes and behaviors from another class.• Use access modifier protected in a superclass to give subclass methods access to these...
more
Java Computer Science
12/10/22
CLASSES AND OBJECTS
Create class IntegerSet. Each IntegerSet object can hold integers in the range 0–100. The set is represented by an array of booleans. Array element a[i] is true if integer i is in the set. Array...
more
Java
12/09/22
write a program in java using while loop of accept 5 numbers from the user and print the addition
Java Computer Programming
12/03/22
Object oriented programming (GUI) Need help with a question
write a program that can be used to help a teacher enter the grades of his/her students for an assignment.Your program should request the teacher to enter the following information for each...
more
Java
12/01/22
how to apply for Tutor?
hey my name is Vikash I'm from India I m a computer science and engineering graduate doing freelancing and am also a subject matter expert on the Chegg platform, can I apply for Tutor on the...
more
11/28/22
Complete Binary Tree in Java (ArrayList implementation)
inOrder, postOrder, and preOrder seem to be printing extra numbers. Why is this happening? import java.util.*;public class CBT{ private ArrayList tree; public CBT(){ tree = new...
more
Java
11/28/22
Turning a csv file into a 2d array?
how can you turn a csv fle into an array using basic java no 3rd party plugins?
Java
10/26/22
The following should print "ver" and "ever". Write the methods that will make the program work.
public static void main (String[] argv) {char[] word = {'n', 'e', 'v', 'e', 'r'};char[] word2 = {'r','i', 'v', 'e', 'r'};char[] word3 = {'e', 'v', 'e', 'r'};char[] suffix = commonSuffix (word,...
more
Java
10/26/22
Write a program called Histogram.java that takes the histogram array and draws the rectangles.
Java
10/26/22
Java coding challenges
My code is below and I'm wondering how to print Take Care like ekaT eraC but it doesn't print that way.public class challenge4 {public static String everyOtherWordBackwards(String str){ String...
more
Java
10/24/22
Variation problem
The gravitational force, F, between an object and the Earth is inversely proportional to the square of the distance from the object to the center of the Earth. If an astronaut weighs 207 pounds on...
more
Java
10/24/22
I need help with a reverse string
Write a function that reverses a string. The input string is given as an array of characters s.You must do this by modifying the input array in-place with O(1) extra memory. Example 1:
Input: s =...
more
10/12/22
i need help please
Newton's law of cooling.dT/dt=−K(T−Ta)Resolve this ODE using the scipy library.
Java Computer Programming
09/30/22
Methods with loops are destroying my brain, help!
Define the method printValues() that takes two integer parameters and outputs all integers starting with the first and ending with the second parameter in reverse order, each followed by a newline....
more
Java
08/25/22
Java: Kinetic Energy
Hi, I’ll first apologise as I am not very proficient at programming at all.I’m having trouble with designing a program in Java for homework, I was wondering if I could get the solution to this...
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.