Results 1 to 3 of 3
Like Tree3Likes
  • 2 Post By KevinWorkman
  • 1 Post By joeyvitoro

Thread: 10 green bottles

  1. #1
    Dave013 is offline Member
    Join Date
    Oct 2011
    Shrewsbury, Shropshire
    Rep Power

    Default 10 green bottles

    I dunno if anyone can help me

    I am looking to get the code for 10 green bottles.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: 10 green bottles

    System.out.println("10 green bottles");

    If that's not the answer to your question, please see the link in my signature on asking questions the smart way.
    sunde887 and Fubarable like this.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    joeyvitoro is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default Re: 10 green bottles

    I agree that the question is awful, but I was curious about what 10 green bottles was so googled it. As long as I've gone that far...Kevin Workman has actually given you what you need. Just enclose it in a decrementing for loop and use your index instead of hard coding a number.
    Dave013 likes this.

Similar Threads

  1. Change border color from blue to green of JFrame
    By altu57 in forum AWT / Swing
    Replies: 1
    Last Post: 07-10-2010, 04:19 AM
  2. Why do I get this green text?
    By thestubbsinator in forum New To Java
    Replies: 5
    Last Post: 06-07-2010, 12:04 PM
  3. 'Bottles of Beer' project
    By s4rd59 in forum New To Java
    Replies: 2
    Last Post: 02-14-2010, 03:27 PM
  4. [SOLVED] Expected Range: Red Green Blue
    By AndrewM16921 in forum New To Java
    Replies: 1
    Last Post: 04-03-2009, 07:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts