• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help me print out a triangle

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rob, Welcome to the ranch

Darryl's comment is not critism, but a reminder of one of our many rules. You're surely not aware of BeForthrightWhenCrossPostingToOtherSites, so please have a look at it. And don't forget the golden rule of the ranch : BeNice
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you tell us what this ACM library is ?
 
Rob Stevens
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's an example of triangle drawing here.
 
Rob Stevens
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Rob Stevens
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic