467 Answered Questions for the topic Java

Java Sql

05/02/23

Develop an application that interviews a patient for general medical history data

Please show steps clearly. Do it in Apache Netbeams or VS CODE1. Develop an application that interviews a patient for general medical history data using abinary tree to drive the interview process.... more
Java

04/16/23

Need help figuring out what is wrong with my Java code

Here is the problem that I am working on: "You should implement the function String findLongestName(String [] names) which takes an array of Strings as an input containing a list of names, and... more
Java

04/14/23

FOR loop question in Java

You need to implement this function public int countBlocks(int levels) that takes the number of levels as an input argument and returns the number of blocks required to build a pyramid made up of... more

04/09/23

why do I need the type and the new keyword with the type again in Java?

When creating an object why do I need the type and the new keyword in java, for example.Scanner scan = new Scanner(System.in);it seems repetitive to say Scanner twice.
Java

01/30/23

Write the function divSpecial that takes an positive integer n1 and returns a string according to the following conditions .

divSpecial (n1) Write the function divSpecial that takes an positive integer n1 and returns a string according to the following conditions - if n1 is divisible by 5, it should return “divFive” - if... more
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?

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

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

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

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

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

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

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

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

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 that takes an array and draws rectangles in java.

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

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.