Rob Stevens

Greenhorn
+ Follow
since Oct 26, 2010
Merit badge: grant badges
For More
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 Rob Stevens

so i know this code is still pretty rough but i need convert this code into classes and arrays. i unfortunately dont know how to do that so i was hoping for some advice.
here is my current code:

here is the file scanned in:



how do i scan in these strings in and store them in arrays and change "head" and "dependents" into classes?

(this code got posted at http://www.programmersheaven.com/mb/java_beginners/419488/419488/converting-my-current-code-to-classes-and-arrays/?S=B20000#419488 by accident and i cant figure out how to remove it. the website is buggy and auto submitted it before i could delete it)
13 years ago

Christophe Verré wrote:Sorry Rob, I don't understand your problem. You've already made a body and wheels. So I can't understand why you cannot make other shapes as well. What is blocking you from progressing ?



i didnt understand how to implement other shapes into that code. i finished it though. its not pretty but it runs:



thanks for the help everyone
13 years ago

Christophe Verré wrote:There's an example of triangle drawing here.



thanks for that. what im trying to get is though is that i just want to be able to add code to my existing code and have it print out... weither it be a triangle or circle i dont care, i just need to understand how to add a shape to what i already have
13 years ago

Christophe Verré wrote:Can you tell us what this ACM library is ?



this was the link they gave me:

http://jtf.acm.org/acm.jar

i dont know exactly what it is but apparently it helps to animate the code
13 years ago

Darryl Burke wrote:Rob, welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites
http://www.javaprogrammingforums.com/object-oriented-programming/5763-help-me-draw-triangle.html

Any more?



Rob Stevens
Greenhorn

Joined: Oct 26, 2010
Posts: 1


well so far ive had 2 replys to this post on this website and neither have not been helpful... 1 being a private message and then you. does this website receive help or criticism?
13 years ago
so here is my code, i have to draw an entire scene but i figure if someone can show me how to add a triangle so that it prints out WITH the code provided, then i will be able to continue from there:

13 years ago