Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 2 of 2 FirstFirst 12
Results 26 to 35 of 35

Thread: How to Create a Word Rectangle

  1. #26
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: How to Create a Word Rectangle

    Did you try it? What happened?
    If you don't understand my answer, don't ignore it, ask a question.

  2. #27
    Member
    Join Date
    Apr 2012
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to Create a Word Rectangle

    it runs:

    computers
    omputersc
    mputersco
    puterscom
    uterscomp
    terscompu
    erscomput
    rscompute
    scomputer
    computers

    but i dont want computers to be outputted twice

  3. #28
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: How to Create a Word Rectangle

    What is controlling how many times it prints? Look at the for loop statement. Change that so it loops the correct number of times.
    If you don't understand my answer, don't ignore it, ask a question.

  4. #29
    Member
    Join Date
    Apr 2012
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to Create a Word Rectangle

    I changed the i = 0 to i = 1, it looked like it did it. Thank you so much for your help.

  5. #30
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to Create a Word Rectangle

    Pettsa, do not report your own post in order to get moderator attention. That just creates more work for us and makes you seem impatient and rude, which actually decrease your chances of getting help. Consider this a warning.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #31
    Junior Member
    Join Date
    May 2012
    Posts
    8
    My Mood
    Starving
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to Create a Word Rectangle

    Quote Originally Posted by KevinWorkman View Post
    Pettsa, do not report your own post in order to get moderator attention. That just creates more work for us and makes you seem impatient and rude, which actually decrease your chances of getting help. Consider this a warning.
    Lol, I find that ironic. He wants this thread deleted because he is getting badgered about it. If you are a mod/administrator, then I'm pretty sure it's your duty to oblige him since this forum is severely lacking in the ability for a user to control their own thread. And if you're asking yourself how I know the first part, is because I'm one of the people who are badgering him about it.

  7. #32
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to Create a Word Rectangle

    Quote Originally Posted by Tecness2 View Post
    Lol, I find that ironic. He wants this thread deleted because he is getting badgered about it. If you are a mod/administrator, then I'm pretty sure it's your duty to oblige him since this forum is severely lacking in the ability for a user to control their own thread. And if you're asking yourself how I know the first part, is because I'm one of the people who are badgering him about it.
    Actually, he reported it begging more people for help, despite the extremely patient help he's already received by Norm. He didn't mention anything about deleting or modifying his thread.

    Users do indeed have the ability to edit their threads, so I'm really unsure about what you're getting at here.

    Why are people badgering him about deleting this thread?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. #33
    Junior Member
    Join Date
    May 2012
    Posts
    8
    My Mood
    Starving
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to Create a Word Rectangle

    Quote Originally Posted by KevinWorkman View Post
    Actually, he reported it begging more people for help, despite the extremely patient help he's already received by Norm. He didn't mention anything about deleting or modifying his thread.

    Users do indeed have the ability to edit their threads, so I'm really unsure about what you're getting at here.

    Why are people badgering him about deleting this thread?
    Unless he reported it a second time, he said to delete it. (I should know, I told him how to report a thread and I was there)

    By that I meant delete their own threads, hell even lock their own.

    Because of his in-ability to ask people around him and completely sounding like he has absolutely no idea what he is doing or at least, very little idea. But other than that, the conversation between the two is just plain funny.

  9. #34
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to Create a Word Rectangle

    Ah, right you are. I misread the report, my fault. Consider the warning retracted, with apologies.

    I still hesitate to delete this thread, in case somebody in the future has a similar issue and can benefit from the help that Norm did offer. Similarly, allowing a user to simply delete a thread after they've been helped disrupts the record of the forum, which defeats the whole point of using a forum in the first place.

    But allowing a user to lock their own thread seems more reasonable. Feel free to ask JavaPF about it, he's the boss around here.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  10. #35
    Banned
    Join Date
    Apr 2012
    Posts
    38
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: How to Create a Word Rectangle

    u can use do while

Page 2 of 2 FirstFirst 12

Similar Threads

  1. read a file word by word
    By poornima2806 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: February 23rd, 2012, 03:14 PM
  2. Replies: 2
    Last Post: October 31st, 2011, 09:19 AM
  3. Reading a text file word by word
    By dylanka in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: October 21st, 2011, 02:06 PM
  4. Rectangle questions
    By stacksofamber in forum Java Theory & Questions
    Replies: 3
    Last Post: September 5th, 2011, 12:43 PM
  5. Dropping to graphic element dragged from JList
    By tua1 in forum AWT / Java Swing
    Replies: 1
    Last Post: November 29th, 2008, 08:22 AM