Printing puzzle

Hi, I'm kinda new to this stuff... i wanna print a puzzle ... here is the code... basically it prints all the lines beside the first line (top line) ... is there any way of printing the top line without creating a new method, which has to draw this line, separately.
public String toString()
        String theGrid = "";
        for (int i = 0; i < rows; i++) {
        String rowSep = "";
            if (i > 0) theGrid = theGrid + "\n";
                for (int j = 0; j < cols; j++) {
                    theGrid = theGrid + "|";
                    rowSep = rowSep + ".";
                    theGrid = theGrid + " " + board[i][j].y() + " ";
                    rowSep = rowSep + "----";
            if (i < rows) {
                theGrid = theGrid + "|" +"\n" + rowSep + ".";
    return theGrid;
|    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |
|    |    |    |    |    |    |    |
.----.----.----.----.----.----.----.

i've sorted it ; i've added the code below and it works :P
for (int i = 0; i < rows; i++) {
            System.out.print(".----");
        System.out.println(".");

Similar Messages

  • Keynote slides printing puzzle

    I've done a lot of work on Pages over the years, but I'm really inexperienced with Keynote.
    I want to print some slides (actually web site pages) from a presentation and have each one fill a single 8.5x11 page.
    I've read Keynote Help – re: Printing Slides – in detail, but all I seem to be able get is a 5x8 (mol) image to print out.
    Is that the biggest I can expect?

    Welcome to Apple Support Communities.
    Let me suggest another approach that might solve your problem.
    Does your printer driver software let you print multiple 'slides' on a single page?
    Then you don't have to resize/redesign everything manually.
    The Keynote and the printer software do the resizing.
    For example, my (monochrome) HP LaserJet 1320 driver can print from 2 to 16 'pages' on a single sheet. (It also offers a 'booklet' option.)
    I used a 1024x768 screen slide resolution and selected '4 pages per sheet' (landscape orientation) in the default printer driver under Layout.
    In the Keynote options, I selected 'Individual Slide' option, but Keynote also offers Slides with Notes, Outline, and Handout options, and I think all Keynote choices are independent of printer selection. (If I did not select '4-pages on 1' in Layout, the Keynote would only offer 1 slide per page in this view.)
    Message was edited by: kostby

  • Firefox no longer allow "print as selected". Why not? It's inconvenient to not have this ability.

    I use this to print puzzles from the Detroit Free Press. The "print as selected" prints the puzzle in a nice size on the paper. Otherwise the puzzle is too big. This is something that has just been changed and is not for the good. If it's not broke, don't fix it.

    Hello,
    You can print a highlighted selection in Firefox by selecting the Print Range > Selection option in the print popup window.
    This is described in the Printing a Web Page section of this article: [[How to print websites]]
    If this doesn't give you enough control then I suggest using an add-on to enhance Firefox's built in features. For example the [https://addons.mozilla.org/en-us/firefox/addon/print-edit/ Print Edit] add-on allows you to modify your print preview to select exactly what you want to print and how.
    I hope this covers what you need. Let me know if not.

  • Loss of apps on printer

    I have an officejet pro 8600 N911a. 
    Until recently, I have been using the apps for printing puzzles, etc.  Now I cannot even print those puzzles using the web via my computer.  I am able to print docs from my computer using Wi-Fi.  When I try to access the apps
    using the printer icon, there is an error message:  unable to connect to server.  There is no connection for e print either. The wireless network rest results do not indicate any problem.   Printer settings consistent with wireless router settings=pass'  Signal quality=very good. 

    Hi @longwinded, 
    Welcome back to the HP Support Forums.  I understand that you are getting a connection error message on your Officejet 8600 printer when trying to use the apps.  
    Please set a manual IP address and manual DNS servers for the printer. I have included a link to another post with the steps, including screen shots, on how to do this.
    Please let me know the outcome.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How to cancel automatic printing of crossword puzzles

    when we first used the printer, we tested the crossword/puzzle app...now everytime I print something two puzzles print out. How do I stop it from happening?? I cannot remember how I started it in the first place! please help..thanks  jodi
    This question was solved.
    View Solution.

    Hi,
    Please follow the steps listed below to disable the schedules print delivery:
    1. From the printers front panel go to the 'Apps' section and scroll through until you find the desired print app. Select the print app and then choose 'Pause' subscription. This will pause the subscription until a user selects it again and 'resumes' printing. If the print app is not visible on your printer it may have been removed, please go to method 2.
    2. Go to www.hpeprintcenter.com and login to your account, create an account if necessary. Go to the 'Apps' section and select the desired print app. Select 'setup' and then 'update settings', at the bottom of the settings page you will see in blue text 'Cancel Scheduled Delivery'.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • I have trouble with Universal Crossword Puzzle not printing.

    When the U Crossword Puzzle doesn't print I try to get it to print by selecting the app on the 8500A screen.  However when I select the app on the 8500A display I get the message that the printer app is unable to connect to the server. This happens every time, although other apps can connect to the server and the printer is on-line. I need to have the U Crossword app connect with the server to tell it to print today's crossword puzzle. That's the only way for me to get it when it doesn't print. What is the problem with this app not connecting with the server???
    This question was solved.
    View Solution.

    Hi Feldo,
    I'm sorry that you are having this problem with that app.
    Here are a couple of solutions to try:
    1) This solution is guaranteed to work. Note: If you use this solution it will cancel all apps subscriptions that you have created. If you have an eprintcenter.com (or eprint.com) account, it will remove your printer and your custom email address from your account. Afterwards you can then re-add your printer (a new printer code wil print automatically) and recreate a customized email address. However, you will not be able to create the exact same email address as you had before.You can also then resubscribe to any apps that were cancelled.
    To use this solution, go to the following website: How to Manage, Pause, or Unsubscribe from Prints and Faxes and click on the link for Solution three: Disable/Enable Web Services on your printer. Follow the instructions there.
    2) Power cycle your printer in this manner: Turn off the printer, unplug the printer (at the socket or at the rear of the printer), wait 30 seconds, plug in the printer, and turn on the printer. Wait at least 5 minutes, then your problem may be solved.
    Let us know what worked for you!
    I work on behalf of HP.

  • How can I retrieve and print a previous day,s puzzle?

    Is it possible to retieve and print  a previous day,s Universal crssword puzzle?

    Unfortunately you are only able to print the puzzle on the day it is available.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • How can I print the puzzle for a day that has gone by?

    I am new to this and can't find how to print a puzzle that I missed, how do I do that?

    You are referring to the crossword puzzle app?  There does not appear to be a way to go back and get puzzles from days past. You can set it up for scheduled delivery and choose the days you want it to print so you don't miss it on days that you want to receive it. You can manage that app and others by going to http://www.eprintcenter.com. 
    You also have the ability to pause and resume printing by settings dates like if you were going on vacation and did not want it to print during that time. 
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Still after 1 week I am unable to print the HP Crossword Puzzle. When will this be resolved?

    After more than 1 week of attempting I am still unable to print the HP Crossword daily puzzle. What is going on with the fix???

    Hello Chowguy,
    I hope you are not having this issue anymore.  An update came out in the middle of May that should have fixed this issue.  If you are still having a problem, let me know and I will see what I can do to help.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Removed crossword puzzle app wont stop printing

    I removed the New York times crossword puzzle that I previously added to my D110a printer.  However, it keeps printing every Sunday.  How do I get it to stop.  Very annoying.  The app is not showing on the printer screen or on eprint website, so it sure appears to be removed.

    Hey thurman9701!
    I can definitely understand your frustration. There is a specific way you have to remove a scheduled delivery app from the printer. Since you've already removed it, you will have to re-add the app and then follow these steps to remove it.
    Go to hpeprintcenter.com and cancel your subscriptions. (In the app settings) Then remove the app. Changing any subscription can take 24 hours to take effect also.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Universal crossword prints yesterdays puzzle. How to print today"s

    prints yesterday's puzzle
    This question was solved.
    View Solution.

    There is a discussion on this new feature listed here . The following is from that text:
    Your issue might be caused by "Note: New printable content is available every day. If you do a Print Now or change your schedule on a day that you have already received a print, the printed page will be the same".
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Can't print crossword puzzle correctly from usatoday site

    when I print the crossword puzzle, the squares don't line up and there are un-numbered square that should be numbered. It has worked in the past, but just recently it doesn't print out properly. If I use I.E. the puzzle prints properly. What should I do?

    There is a specific issue mentioned in the neighboring support forum that could help with is not printing to the page at all [http://kb.mozillazine.org/Problems_printing_web_pages#Does_not_print_to_paper_at_all]
    However since this is specifically for lining up the content, are there any stored margins or styles in the printing profile that you have selected in the Print Dialogue?

  • How can I print HP Universal Crossword Puzzles

    I had been receiving the HP Universal Crossword Puzzles on a daily basis, which automatically were going to my printer and they printed out based on the scheduled time I selected.  Yesterday I received a message indicating that I will no longer be receiving the daily crossword puzzles.
    I've tried to download the app but I'm asked for a claim code and I have been unsuccessful in getting one after reading the instructions on how to get a claim code.
    I have an HP Photosmart 6520 printer which I purchased last year.
    I love doing the HP Universal Crossword Puzzles and I would very much like to know how I can once again receive them and print them out.
    Matty-2013

    Hi Matty-2013. If it is asking for a claim code, then you should just have to reset web services and re-register your printer online.
    This document will help you with the steps necessary. Once you get re-registered you should be able to add and setup your crossword app again.
    Getting Started with ePrint: (go to "What if I lose my printer code before registering?")
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03326915&cc=us&dlc=en&lc=en&product=5169041&tmp...
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Cannot print crossword puzzle

    cannot print crossword puzzle

    Printer is HP Envy 100 D410a, serial #[Personal Information Removed]. The puzzle which will not print is the HP app on the printer screen. What happens is it goes to print and all it prints is a small line thru the center of the page with not puzzle.
    Other items from the HP Apps print just fine. I downloaded and installed on my computer the HP print widget and this prints just fine so the issue is the printers abliity to print from it's intrnal app. NO Error message is given.
    This is the only issue I've had with this printer in over a year of ownership. It's been over a week and a half now.
    Thanks for your help thus far.
    R.L. Schwab

  • Web sudoku app prints the same puzzle every time?

    We got an 8500A plus from Costco recently. My mom was able to print her favoriate game for the first time, thanks to the web sudoku app and the touch interface. Unfortunately, it seems to print the same puzzle every time for the same category (easy, medium, hard, evil).
    Any tips to make it print something different each time? Is it only updated daily?

    Dear hpllu, 
    You should try unistalling and reinstalling the sudoku app from the ePrintCenter website.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP

Maybe you are looking for