- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
I am stuck on the same problem. I tried passing the value entered into each instance of the fromUnit method by multiplying each case by val and still get 0.0 as well.
*Edit* Just so you know, we are on the chapter in the book introducing ArrayLists *Edit* I am having trouble with this problem. The problem is stated: Implement a class Polygon that contains an array list of Point2D.Double objects. Support methods public void add(Point2D.Double aPoint) public void draw(Graphics2D g2) Draw …
Hi everyone, I am working on a problem as follows: Write a program that draws a circle with radius 100 and center (200, 200). Ask the user to specify the x- and y-coordinates of a point. Draw the point as a small circle. If the point lies inside the circle, …
Evening all, My assignment is as follows: Consider a program that administers multiple-choice quizzes. The student needs to provide a response such as A or D. Your job will be to check for input errors in the student response string. Check that the string has length 1, and that it …
Your program doesn't know what finish is. You need a method that called finish that tells it what to do. [QUOTE=MyGonorrheaOnU;1764339]Hello, everybody, I am doing my Java homework and we used this line in class with no problems at, I have the code from the program we used in class …
[QUOTE=mags11;1761663]I am trying to get the program's decimal to output in two decimal places after the decimal. Please advise. [/QUOTE] You created dec here but you didn't use it anywhere. [CODE] DecimalFormat dec = new DecimalFormat("###.##"); [/CODE] There are several ways to do this, but, what you did is good. …
The End.
xcrypted1