Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!

Andrew Bauer

Greenhorn
+ Follow
since Oct 19, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrew Bauer

Campbell Ritchie wrote:Doesn't that answer your question? If you move the star‑drawing code into the loop, you will get multiple stars. That might be what you want, or it might not be.

[edit]Maybe Piet's suggestion is better than mine.




Are you referring to the main method loop?
3 days ago

Campbell Ritchie wrote:Where does DrawingCanvas come from?
Why have you got so many static methods, and why have you got so much code in the main() method?
Where is the instruction to draw lines, and how often does it run? Same for the instruction to draw stars.




DrawingCanvas is just a class, the static methods are there to perform a different action and I was trying to reference the main method code to the drawStar method. The instruction to draw the lines is in the main method and it runs a total of 19 times whereas the star method only runs once.
3 days ago


Currently my program generates only 1 spoked star figure and a bunch of lines but I'm trying to figure out how I would go about replicating the spoked stars. What do you guys think?
3 days ago



Am I at least moving in the right direction now?
2 weeks ago

Carey Brown wrote:Seconds makes sense, though it looks like it's accurate to the millisecond. Your duration doesn't take milliseconds into account (which is ok).




How do you deal with two doubles though to produce a third double(duration)?
2 weeks ago

Carey Brown wrote:

Andrew Bauer wrote:

Carey Brown wrote:What units is duration endOfFadeIn in?



endOfFadeIn is in seconds.

2 weeks ago

Carey Brown wrote:What units is duration endOfFadeIn in?
What is 001:02:03:04? days, hours, mins, secs?



Yes it starts with days then hours, minutes, and seconds. Well actually endOfFadeIn is in seconds.
2 weeks ago
I'm struggling now to determine how I would go about calculating the duration of each song and formatting the output it produces as indicated in the attached screenshot.


Right now as far as the code goes this is what I have.


2 weeks ago

Carey Brown wrote:I'm late to this game, can you show me what you've got and the output you're getting? I suspect you'll want to use System.out.printf(...).






2 weeks ago
Good stuff. Now I just need to figure out how to change the ugly output into separate columns with their respective type.
2 weeks ago

Carey Brown wrote:

Junilu Lacar wrote:

What would this look like if you removed 2/3rds of it?




Well I would assume exactly like the segment I posted above. Or is that wrong?
2 weeks ago

Carey Brown wrote:Start simple. How would you call it just once for artistName?







2 weeks ago

Carey Brown wrote:Why not call the same method three times?




What would that look like?
2 weeks ago

Carey Brown wrote:Remove 2/3rds of it.




Alright so I suppose I would need to call individual methods for the other two strings now or is there an easier way?
2 weeks ago