493 Answered Questions for the topic Java

08/06/25

USB drive's name/label was permanently changed while it's actually empty label

have a number of Lenovo M70q G3 computers around our campus, including a few public computer banks.have a number of Lenovo M70q G3 computers around our campus, including a few public computer banks.

06/12/24

(Java) How would you properly represent the following phrase?

How would you properly represent the following phrase? On to the next line!
Java

05/24/24

How Java achieve polymorphism

Java follows oops concepts so polymorphism is one of the oops concepts How Java achieve it?

JavaFX problem help needed

I was given this code down below : package com.example.demo1; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.paint.Color; import... more

Need help with a java coding problem

I am current working on a java problem that goes like this : "Write a program that prompts for and reads a person’s name, age, college name.".This is my current code: import... more

10/22/23

Where is ChatGPT useful? Where is it not useful?

Where is ChatGPT useful?Where is it not useful?
Java

10/21/23

Is it difficult to learn Java?

How easy or difficult is it to learn Java?

create JUnit 5 test for these code

@Test public void getEndpoints() { }@Test public void distance() {} @Test public void slope() {}@Test public void midpoint() { with this code: public Point2D[] getEndpoints() { Point2D[]... more

create JUnit 5 tests

@Test public void getEndpoints() { }@Test public void distance() { } @Test public void slope() { }@Test public void midpoint() {

java method creation

public Point2D[] getEndpoints()This method creates and returns an array containing copies of the two endpoints of this Line2D object. Note that the length of this array must be 2 and the order of... more

java instance methods creations

public Point2D copyOf()This method creates and returns a new, distinct Point2D object with data copied from this Point2D object.public Point2D add(Point2D other)This method creates and returns a... more

java method creation

provide a sequence of Java statements to declare, create, and initialize an array of the first 500 positive even integers. the value of the first element should be 2 the value of the second element... more
Java

09/16/23

Trying to find error: cannot find symbol

Write a program that reads integers userNum and divNum as input, and outputs userNum divided by divNum three times. Note: End with a newline.Ex: If the input is:2000 2the output is:1000 500... more

java method getUserGuess

Method name: getUserGuessParameter(s): a Scanner objectReturn type: StringPurpose: This method asks the user for a 5-letter word and returns the word. This method must repeatedly ask for a word... more
Java

08/25/23

The code stubs in your editor declare a Solution class and a main method. Complete the main method by copying the two lines of code below and pasting them inside the body of your main method.

The code stubs in your editor declare a Solution class and a main method. Complete the main method by copying the two lines of code below and pasting them inside the body of your main... more

08/17/23

This is a Java Quiz

1.     C and C++ are __________-threaded languages whereas Java is a __________-threaded language.2.     Three reasons an alive thread might not be Runnable are that it is _________, _________, and... more
Java

07/09/23

I am in dire need in assistance with solving and correcting these syntax and logic errors

public static void main(String[] args) { int[] num = { 7, 2, 6, 4, 12, 6, 1, 8, 49, 3 }; int lowest = num[0]; int highest = num[0]; for (int i = 0; i < num.length; i++) { if... more
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

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.