422 Answered Questions for the topic Java

Java Swing

5d

Why am I getting the error package does not exist?

So I created a GUI in Net-Beans and I'm trying to run it in VS Code and I keep getting this error for all my packages error: package org.netbeans.lib.awtextra does not exist ... more
Java

04/18/22

Java help the full question is below

Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. The input begins with an integer indicating the number of integers that follow.... more

04/02/22

Java Programming Language

java Programming1. Design a class named Employee_Salary that contains:• A String data field named name representing the name of the employee.• A String data field named position representing the... more
Java

04/01/22

java Programming

1. Design a class named Employee_Salary that contains:• A String data field named name representing the name of the employee.• A String data field named position representing the position of the... more
Java

03/28/22

I need a Personal Information Class Design a class that holds personal data

more specificly: name, address, age, and phone number. Demonstrate the class by writing a program that creates three instances of it. One instance should hold your information, and the other two... more

Introduction to programming help (Java)

A Small supermarket employs workers who are paid every week in hourly bases according to one of the following three rates (depending on their positions). [Postion Type] [Position Name] [Hours Rate... more
Java

03/08/22

Hi I need help with AddNums in Java

write a function named addNums that takes a string parameter containing a colon-delimited list of 2-digit numbers(ex. 12:21:14), multiplies together the two digits in each number, and computes the... more
Java Javascript

02/16/22

NEWTON'S METHOD

1. There is some starting integer number, called S, that we want to find the square root of. (i.e. we want to find S−−√ ) So prompt the user to enter an integer value between 20 and 400 for S.  We... more
Java

02/10/22

Pointers in Java

Does Java supports pointers (from C) for use in it's programming language. The parameters passed by Java is pass by value or pass by reference ?

UNIT 4 LAB CODING

Agile Programming – For Your Family Describe the cutting-edge program that is referred to as Agile Development. How does it work and what are some of the benefits in a workplace setting? How does... more

I don't know how to to code this

Good day. I was hopin if you could help me with this java code that includs a priorityqueue and a scanner. I can't seem to produce an output that make you print the priorityqueue one by one, it... more

Please answer the question in description

Assume that the following numbers belonged to an ArrayList called values:5, 23, 45, −3, 17, 18, 100Which of the following would determine how many elements are in values?  a int numElements =... more

Answer the question in the description please

Assume that aList is a valid ArrayList containing the following:Wei, Marila, Anna, Neal, Rachel, Jack, AneeshWhich of the following does not remove Anna from aList? aList.remove("Anna",... more
Java

01/24/22

I need help with java code cant get output

I need the following output:Values: Allen Amy Bill Chris Jane John SueSo far I have:import java.util.*; public class StringSort2 { public static void main(String[] args) { Scanner input = new... more

Please answer the question in the description.

Assume that aList is a valid ArrayList containing the following:Wei, Marila, Anna, Neal, Rachel, Jack, AneeshWhen the following statement executes, what does aList contain? aList.set(1,... more

Answer the question below please.

Assume that aList is a valid ArrayList containing the following:Wei, Marila, Anna, Neal, Rachel, Jack, AneeshWhich of the following does not remove Anna from aList? aList.remove("Anna",... more

Answer the question in the description below please.

Assume that the following numbers belonged to an ArrayList called values:5, 23, 45, −3, 17, 18, 100Which of the following would determine how many elements are in values?  a int numElements =... more

what is the answer to the question in the description

Given the following class:import java.util.ArrayList;public class RectangleTester{     public static void main(String[ ] args)     {          ArrayList< Rectangle > shapes = new ArrayList<... more

What is the answer to the question in the description

Assume that the following code exists inside the main method of SomeClass, and that this code compiles without errors:int result = obj.calculate(4, 3.14);where obj is an object of... more

12/09/21

computer language

Write a java program to implement inheritance and methodoverriding for the given problem below: [20] 1. Create a class called Courier that includes the following: a. Declare the necessary member... more

12/09/21

computer language

Write a program that reads an integer from the user, then creates an array of integers of that length. It then fills the array with integers read from the user. a) In your program’s main class,... more

12/09/21

computer language

Write a Java code which gives the value of for n= 2,4, … 2^14. You can use the function Math.pow(x, y).

Check whether the number is divisible by the multipliers of two and the rest of integers, java multithreading

I am trying to find the largest factor of a number (except than itself) by using multipleThreads in JAVA. the template for the code is ready but I don't know what to put in the missing methods. the... more
Java

12/01/21

Java finding median

How to write a program which reads three distinct integers and prints the middle median of the three numbers when the three (numbers) are in order

Please help with coding problem

Hello,I have a question about a java code. I have to write a program where i'll enter a String value as a variable “word”: “blahblahblah” then create a method that is called “showPairs(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.