How to do a test print

I have a 110 series.  One or more of the cartridges are running out.  A test print would tell me which one.  How do I do a test print?

Hello rogerwendy,
Which printers did you have? If it's a Photosmart e-AiO D110 continue with this:
You can see an estimate of the ink levels via the Solution Center - open the Solution Center, click on Settings and then on Printer Toolbox. Click on the tab called Estimated Ink Levels and you should be able to see the ink levels of your cartridges.
You can also print a test page called print quality report, if you follow this link and go to Solution Six in the document you will find instructions for how to print this test page:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02002581&cc=us&lc=en&dlc=en&product=4023246

Similar Messages

  • How to avoid TEST PRINT page

    Dear All,
    How to aviod the test print page in printing. I am getting SAP cover page(test print page) for every time I am printing. I ma using the following code.
      CASE sy-ucomm.
        WHEN 'PRNT'.
          DATA: l_params TYPE pri_params,
                l_valid TYPE c,
                l_arc_params TYPE arc_params.
              l_params-prsap = 'X'.
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              destination            = 'LPIN'
              copies                 = 1
             list_name              = 'TEST'
             list_text              = 'Test NEW-PAGE PRINT ON'
              immediately            = 'X'
              layout                 = 'X_65_132'
              line_count             = 65
              line_size              = 220
              release                = 'X'
              mode                   = 'CURRENT'
              no_dialog              = 'X'
            IMPORTING
              out_parameters         = l_params
              valid                  = l_valid
            EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
          NEW-PAGE PRINT ON   PARAMETERS l_params NO DIALOG.
          PERFORM display_data.
          NEW-PAGE PRINT OFF.
      ENDCASE.
    Thanks,
    Ranjan

    Hi,
    Just check it out. I m printed report directly instead of display.
    w_destination = 'LOCL'.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            destination    = w_destination
            layout         = 'X_58_170'
            no_dialog      = 'X'
          IMPORTING
            out_parameters = params
            valid          = valid.
        IF valid <> space.
    ALL DISPLAY PARAMETER RIGHT ON PRINTER
          NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
        ELSE.
    GIVE ERROR PRINTER DESTINATION IS NOT VALID
          MESSAGE s208(00) WITH text-010.
        ENDIF.
      ENDIF.
    User write stament, That will dirctly go for print.
    OFF THE PRINTING AFTER REPORT IS DISPLAY
      IF valid <> space.
        NEW-PAGE PRINT OFF.
      ENDIF.
    it may sortout ur problem.
    Regard,
    Vinod

  • How can I get Test Stand to print failues only?

    Rather than getting a large report file with hundreds of passes and only one failure, how do I configure Test Stand to only print the failures to the report?

    Hi,
    the engine callbacks are simply a sequence that gets called when a particular thing happens (i.e. Post Step).
    There's three types
    SequenceFile (for steps that execute in that sequence file whether it's a client sequence file or a process model)
    ProcessModel (for steps that execute in the client sequence file run under this process model, but NOT the steps in the ProcessModel)
    Station (for all steps on that installation - found in the StationCallbacks.seq sequencefile)
    If the engine callback appears in more than one of the three places, then the lowest one (seq file->proc model->station listed lowest to highest)is used.
    In your case, you could use any of them depending on your architecture.
    Personally, r
    emoving from the resultlist is easier than working out whether to add to it, but that gets tricky when you have steps which loop.
    If you decide to make up your own add, then the PostStepFailure is the callback sequence to use (go to edit->sequencefilecallbacks). You'll have to add a new element to the resultlist, and start fleshing it out with the result container of the step (which you still have access to as a parameter) plus the TS container.
    This would go into the Runstate.Caller.Locals.ResultList[x]
    Also, don't forget to disable the result collection on all the steps in the test sequence, plus all the ones in your poststepfailure callback, since you're doing your own.
    I'm attaching what I've done so far as an example - not quite finished, but it's done the TS container. Just now need to do the actual result container.
    I'll keep working on it but for now you can see what I'm getting at.
    Hope that gives you a kick start with the callbacks bit
    Sacha Emery
    National Instrumen
    ts (UK)
    // it takes almost no time to rate an answer
    Attachments:
    collect_only_failures.seq ‏31 KB

  • Hi All,  I setup 2 Mac Minis, 'setup in a no-apple id. Now with Mini1 I installed a shared printer from Windows7 Pc it ask for credentials then I input Adminstrator account and the password ticking the remember in "keychain"  I run a test print and its se

    Hi All, 
    I setup 2 Mac Minis, 'setup in a no-apple id. Now with Mini1 I installed a shared printer from Windows7 Pc it ask for credentials then I input Adminstrator account and the password ticking the remember in "keychain"
    I run a test print and its seamless. I reboot the Mini1 and run test print again and its good.
    Now in Mini2 I did the same installation on shared printer but it is asking for user credential again and again, there is a check mark in "remember in keychain but still gives a notice that "requires authentication" I put the admin creadentials same with Mini1 then it prints.
    every time I print on Mini2 its always asking for a user & password before Printing. How can we fix it.
    I tried
    - lpd printing = "authentication required"
    - reset printer settings ang re-install printer = "authentication required"
    - replace sharename in windows7, reinstall printer in Mini2 = "authentication required"
    This stuff never happened to Mini1.

    Hi All, 
    I setup 2 Mac Minis, 'setup in a no-apple id. Now with Mini1 I installed a shared printer from Windows7 Pc it ask for credentials then I input Adminstrator account and the password ticking the remember in "keychain"
    I run a test print and its seamless. I reboot the Mini1 and run test print again and its good.
    Now in Mini2 I did the same installation on shared printer but it is asking for user credential again and again, there is a check mark in "remember in keychain but still gives a notice that "requires authentication" I put the admin creadentials same with Mini1 then it prints.
    every time I print on Mini2 its always asking for a user & password before Printing. How can we fix it.
    I tried
    - lpd printing = "authentication required"
    - reset printer settings ang re-install printer = "authentication required"
    - replace sharename in windows7, reinstall printer in Mini2 = "authentication required"
    This stuff never happened to Mini1.

  • How do I change a printer's IP address, !again! :(

    O Great, Knowledgeable and Kind printer gurus,
    I'm in a similar situation to Peter Minter's old archived thread at
    http://discussions.apple.com/thread.jspa?messageID=2188292?
    ... So I'm sorry to be the next confused person Sorry to be asking ask a question that has probably already been answered multiple times, in which case blush, and a pointer to the answer would be great.
    I have a Linksys Ethernet switch into which I've plugged
    1. RJ45 carrying signal to/from an Apple Airport Router's Ethernet LAN output plug (Router gets its input from my Cable Modem)
    2. RJ45 carrying signal to/from Mac Mini
    3. RJ45 carrying signal to/from Mac Al-PowerBook G4
    4. RJ45 carrying signal to/from HP LaserJet 5M
    1, 2, and 3 are networking just fine to one another and out to the Internet, and have been fine for months.
    It's the LaserJet 5M that I've just gotten that I can't figure out how to configure so's I can print to it.
    Via its test page output, the printer reports its current IP addr to be 0.0.0.0 , subnet mask NOT SPECIFIED, def gateway 0.0.0.0 , config by RARP/BOOTP
    Via its network status panel, the mini reports:
    IP: 10.0.1.2
    Subnet Mask: 255.255.255.0
    Router: 10.0.1.1
    Via its network status panel, the PowerBook G4 reports:
    IP: 10.0.1.4
    Subnet Mask: 255.255.255.0
    Router: 10.0.1.1
    In slot 4 of the Linksys switch, I used to have an HP Print Server that made a network printer out of an old HP LaserWriter 4ML's parallel port. Damned if I remember how I changed the HP Print Server's IP addr., but I did somehow!
    The newer HP LaserJet 5M has an RJ45 input so it's networkable directly, but I think I need to be able to reach into it (I think via Telnet from TERMINAL running in either of the two Macs) and change its IP addr to something in the local subnet. Maybe it "should" be 10.0.1.3.
    However, try as I might, I cannot open a TELNET connection to 0.0.0.0 or any machine:
    ==============
    DrDans-AL-PbG4:~ DrDan$ date
    Sat Jul 29 09:52:43 EDT 2006
    DrDans-AL-PbG4:~ DrDan$ telnet
    telnet> open 0.0.0.0
    Trying 0.0.0.0...
    telnet: connect to address 0.0.0.0: Connection refused
    telnet: Unable to connect to remote host
    telnet> open 10.0.1.2
    Trying 10.0.1.2...
    telnet: connect to address 10.0.1.2: Connection refused
    telnet: Unable to connect to remote host
    telnet> open 10.0.1.1
    Trying 10.0.1.1...
    telnet: connect to address 10.0.1.1: Connection refused
    telnet: Unable to connect to remote host
    telnet> quit
    DrDans-AL-PbG4:~ DrDan$ date
    Sat Jul 29 09:53:34 EDT 2006
    DrDans-AL-PbG4:~ DrDan$
    ==============
    So, from the AL-PbG4 (10.0.1.4) I can't OPEN connections to all the IP addresses I "should" be able to see. Hmm. I must be doing something wrong.
    Even if I could contact the HP printer, how would I change its IP addr, and what should I change it to? 10.0.1.3 or maybe 10.0.1.200 ?
    MacOSX 10.4.7, Printer Setup Utility Version 4.6(161.9)
    Given that the HP printer's directly on the LAN thru the switch -- should I use "HP Jet Direct - Socket" protocol, or Internet Printing Protocol (IPP) or Line Printer Daemon (LPD) protocol? Simply baldly getting in there and assigning the addresses 10.0.1.3 or 10.0.1.200 on HP Jet Direct - Socket" protocol doesn't seem to produce a working queue. I also select Print Using HP LaserJet 5M. No soap.
    Any hints? Should I d/l a better/higher functionality configuration tool from HP? I'm about Googled out on this, and what I think to be an exhaustive search in this HELP area doesn't give me the info I think I need. Wot am I doing wrong, pls? Any more info I can provide? Happy 2 do it. TIA for any cycles you can spare.

    I appreciate the feedback VERY much, Kappy, and at the beginning of my most recent (and successful!) hacking session, I thought that you were helping me "fail forward" ... but it all turned out OK, thanx to you!
    When I get the printout of the "MENU MAP" the HP MIO menu shows only
    CFG NETWORK = NO
    so with your welcome hint, I just found that if I go into the HP MIO menu and change NO to YES*, I can keep going... and I can even get to where I can change the TCP/IP addr!
    As (I believe) befits an important setting area like CFG NETWORK, setting it to YES* holds only for ONE application. When you come back from READY status, HP MIO's CFG NETWORK is set back to NO.
    But if I've just arrived and have set CFG NETWORK to YES* and keep going, I see choices like
    NOVELL = OFF*/ON (I left that at OFF*, no Novell hereabouts)
    DLC/LLC = OFF*/ON (not understanding what that is, I left it at OFF*)
    TCP/IP = ON*/OFF (I can set it ON* and it will "stick" from entry-from-READY to future entry-from-READY -- like I've turned it ON and it stays on)
    ETALK = ON/OFF*
    Encouragingly next, I see
    CONFIG TCP/IP = YES*/NO
    BOOTP* = YES/NO*
    Then I get to a place where I can enter
    TCP BYTE 1 = 0*
    and I can move that byte up until it reads
    TCP BYTE 1 = 10*
    and the same through the rest of the TCP BYTES:
    TCP BYTE 2 = 0*
    TCP BYTE 3 = 1*
    TCP BYTE 4 = 3*
    These settings persist from CONFIG TCP/IP to the next CONFIG TCP/IP session, so that's good...
    Next in the menu options, I see
    SM BYTE 1 = 0* which I assume means Subnet Mask, so I alter that to be the same as the other members of my LAN (correct me if these settings are wrong, please?)
    SM BYTE 1 = 255*
    SM BYTE 2 = 255*
    SM BYTE 3 = 255*
    SM BYTE 1 = 0*
    These settings persist from CONFIG TCP/IP to the next CONFIG TCP/IP session, so that's also good...
    Next the menu offers me
    LG BYTE 1 = 0*
    LG BYTE 2 = 0*
    LG BYTE 3 = 0*
    LG BYTE 4 = 0*
    I have no idea whatever what LG means, so I didn't change that. Same for the next choice:
    GW BYTE 1 = 0*
    GW BYTE 2 = 0*
    GW BYTE 3 = 0*
    GW BYTE 4 = 0*
    Finally, the CONFIG TCP/IP = YES* menu offers
    TIMEOUT = 90*
    and the possible values range from 0 through 3600. Having no idea whatever what this is, I left it alone.
    When my printer's TCP/IP addr was set at 10.0.1.3 I could PING it successfully. When I changed its addr to 10.0.1.200 I could no longer PING 10.0.1.3, but could successfully PING 10.0.1.200 .
    However, in neither case can I add a printer whose IP address is 10.0.1.200 or 10.0.1.3, whose queue-name I leave blank for the default queue, using IPP, and where I specify the HP Laserjet 5M device.
    Sooooh close I wondered what my dain bramage was...
    I next wondered whether it perchance had something to do with the LG or the GW 4-octet strings, which I could set to anything but which I've left 0.0.0.0 out of ignorance?
    But then I got a brainstorm -- it seems as if what is built into this printer is like the JetDirect I used previously -- so when I changed from IPP to JetDirect SOCKET protocol, everything worked!
    So a great big THANKS FOR THE CRUCIAL HINT!! goes to you, [B}Kappy!! :)
    ... might be nice to know what LG, GW, and TIMEOUT have to do with anything, but right now I'm a Happy Camper.
    ... and strangely enuf, the .PDF file I cite above has no occurrences of CFG, much less TCP. Foo upon all HP Documentation 'droids.

  • Xerox Phaser 8860 on Network-How to turn off popup print job confirmations?

    I recently upgraded to OS 10.6.4 and as expected I needed to reinstall the drivers for a few peripherals. One of which was the Xerox Phaser 8860 which is on the network. Everything works, but now after each print job prints out a window pops up in the center of the screen notifying me that ::Job### has printed on Xerox Phaser 8860::. It causes no serious problems, but it does knock me out of what ever program I am using. Which can get extremely annoying when I'm drawing and I repeatedly get halted mid (pen/brush) stroke. It stays up on the screen for about a minute and a few times it has remained up. There is an option to close, it simply gets really annoying after the 30th time. Common sense would suggest to not draw while a file is on it's way to the printer, but my work day is a constant flow of drawing, printing, color tests and editing. It's not practical or good for deadlines to stop drawing to wait for a print job to come out and the pop up window to go away.
    I tested printing from the other computers, which are PC's using various versions of windows and they all come up with the same pop up window (though theirs come up at the bottom right of the screen). They do not receive confirmation windows from the other printers not on the network.
    This suggested to me that this was a setting with the Xerox software. However, I spoke to the technical support for Xerox and they said that the pop up window had nothing to do with their software and claim that it had to be generated by the Mac OS 10.6.4.
    I am regularly printing from the following programs:
    Photoshop, InDesign, Illustrator, Adobe Acrobat, Word, and Excel. The pop out window has acquired while printing files from all of these programs. I doubt that has any relation but I thought I'd add it, just in case.
    I would very much like to know how to turn this confirmation notification off in OS 10.6.4. Or if anyone has an thoughts on what software could be the culprit.

    In CWIS go to Properties > General > Printer Defaults and disable the Startup page  As for garbage prints, That sounds like a PS error. And they are almost always due to improperly embedded fonts. Have all your users switch the following in their drivers (Picture is the global driver, but the regular driver will have the same option.) Essentially by default the printer uses its own locally stored fonts on the jobs, but when the fonts are misunderstood, or unknown it winds up printing wingdings.  

  • SMART PRINT: How do I use SMART Print on Safari web browser please?

    I use a MAC with Safari web browser. How do I get Smart Print for Safari please. (I do not want to use BING). Is there any way of doing this?

    Hi Paulmozzi!
    Here it is the supported devices list: http://www.mozilla.org/en-US/mobile/platforms/
    However, because of the large number of Android devices (phones and tablets), not all new devices could be tested yet, but the list will continue to be updated.
    I am not sure if I understand correctly your issue. When typing something in url bar, you will have at least 4 default search engines (Google, Wikipedia, Amazon, Twitter), so you can choose any of them. If you want to install more search engines, here it is a useful link for that: http://mycroft.mozdev.org/search-engines.html (open this link using Firefox Mobile on your tablet).
    If you still need more help, please let us know. Any more details regarding your issue will be very useful.

  • How to change margins when printing in landscape

    Hi all,
    I have a network printer installed on Solaris 6. To get it to print in "landscape" i added a filter - like this:
    Input types: any
    Output types: landscape
    Printer types: any
    Printers: any
    Filter type: slow
    Command: /etc/lp/landscape.sh
    The script: landscape.sh:
    echo "^[&l1O"
    cat -
    echo "^[&l0O"
    When i print like this: lp -dprinter -olandscape filename it print�s in landscape. Problem is i can�t set up any margins.
    Printer is configurated like this:
    Banner: on:Always
    Content types: landscape
    Device: /dev/null
    Interface: /etc/lp/test
    Printer type: unknown
    Modules:
    Options:
    I tried to modify it�s interface file, but that had no effect. Here are the line i tried to modify
    # PC-850, 12 cpi, 12 pkt, normal Courier, 6 col. Left Marg., 2 lin. TopMarg.
    echo '\033(0N\033(s0p12.00h12.00v0s0b3T\033&a6L\033&2E\c'
    How can i change the margins ?
    Thank u all
    Thomas

    It sounds like either the font is corrupted or your AddressBook prefs are whacked.
    You can check the font in FontBook > File> Validate Fonts, or in /Users/yourname/Library/Preferences/com.apple.AddressBook.plist move it to the desktop and restart.
    -mj

  • Printer will not print word documents or documents from internet however does a test print

    My printer will not print word documents or documents from the internet.  However it does complete a test print.  I have uninstalled and reinstalled printer.  I have disabled and enbled the firewall and have run the test doctor programme, which has been unable to identify any problems.  I have a HP deskjet 3050A all in one J611 series printer.

    Sorry that you are having a problem with printing word documents and internet. 
    Are you connected USB or wireless?
    You can try to download an alternative driver and check to see if that works. (Shane_R) has a great post on how to do so. 
    The deskjet 990c is usually the better one. 
    http://h30434.www3.hp.com/t5/Printer-All-in-One-So​ftware-Drivers-e-g-Windows-8/How-to-Assign-Alterna​...
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • How To... We Printing with Microsoft Excel in 7.0 / 2004s

    We implemented the How To... Web Printing with Microsoft Excel in BW 3.5.  We have upgraded a test box to 7.0 ( 2004s ) and the functionality is no longer working.  We have buttons in our web templates which call the help service and when they are clicked nothing happens.
    An example of the code we are using is:
    <A href="<sap_bw_url cmd='PROCESS_HELP_WINDOW' help_service='HELP_SERVICE_PRINT' item='GR1TABLE' subcmd='PRINT_EXCEL'>">
    Have other folks successfully continued to use this functionality in 2004s?  I know that formatted printing is an option in the new version but we intend to do a technical upgrade first and subsequently leverage this new functionality.
    Thanks!

    Thanks for the help.  I didn't think that there would be an SAP note for the How To but note 995142 has the exact changes required.  Thanks for pointing that out.

  • How do I create a print button to print a specific range of the document.

    How do I create a print button to print a specific range of the document.  I've found JavaScript to print a specific page, but a range or even multiple ranges.  Form is created in Adobe 9 Pro.  Any help would be truly appreciated! 

    Sure, I'll give it a test.  Its just that I have a 128 page form that not all of it needs to be printed.
    Currently,  I have an index page where I want to set up a print button queues per form, however there are several form scattered throughout the document that make up a specific section, but it does not require printing the entire document.  Does that make sense?
    I did find this JavaScript during my reseach, but have not be able to get it to work.
    var pp = event.target.getPrintParams() ;
    pp.interactive = pp.constants.interactionLevel.full;
    pp.printRange=[[1, 1], [3, 4]];
    event.target.print(pp);

  • How to Do TNSPING test in BI 7.0 to test the DB Connect

    Hi,
      I recently established a DB Connect with a Oracle Database to BW.
    Now i want to check the Database connection from BW
    How can i do a TNSPING test in BW to check the connection
    Thanks

    Check here
    http://help.sap.com/saphelp_nw04/helpdata/en/67/576f39ff1ee32ce10000000a114084/frameset.htm
    Reporting agent -> Batch printing
    Here you set how your reports to be printed in batches.

  • Test print PSC 1410

    everytime i switch on my printer HP- PSC  1410 it start with a test print ,how can i avoid it. Thanks for concern.

    Hi @ben51 
    Let's perform a hard reset. To do so, leave the printer on and unplug the power cable fro 1 minute. While it is unplugged, hold down the power button on the printer for 10-15 seconds to release any built up power, then after the minute has passed, plug the printer back in.
    Also, do you have the printer connected directly to a wall outlet or is it in a surge protector or power bar? Even if you have been using a surge protector/power bar all this time and you feel it is not the cause, please connect it to a wall outlet just so we can eliminate the power source as the root cause.   Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector
    In this document you will see, ISSUE: Problems or issues may arise when an HP LaserJet series printer is connected to an uninterruptible power supply (UPS), a power strip, or a surge protector
    ^ This is not limited to Laserjet printers.
    If the issue persists, I am not sure what else to suggest other than to call us.   If you are in Canada or US call 800 474 6836, or you can Contact HP Worldwide.
    I hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Test Print

    to make sure i have install the printer how do I test print? For wireless printing

    Hello Lynda
     If you,ve set up the printer send it as an email. I take it youre talking about eprint, right?

  • How I would implement the print mehtod?

    I have this code...
    * SinglyLinkedList.java
    * An implementation of the List interface using a
    * singly linked list.
    * (P) 2000 Laurentiu Cristofor
    * Modified (slightly) for s03 by D. Wortman
    // The class SinglyLinkedList provides an implementation of the List
    // interface using a singly linked list.  This differs from the Java
    // class LinkedList, which employs a doubly linked list and includes
    // additional methods beyond those required by the List interface.
    // Note: Included in this file is (at least) a "stub" method for each of
    // the required methods, as well as an implementation of the Node class.
    // This allows the file to compile without error messages and allows
    // you to implement the "actual" methods incrementally, testing as you go.
    // The List interface include some "optional" methods, some of which are
    // included here (see the List API for the meaning of this).
    // Some of the methods are preceded by comments indicating that you are
    // required to implement the method recursively.  Where there are no
    // such comments, you can provide either an iterative or a recursive
    // implementation, as you prefer.
    // There are some methods that you are asked not to implement at all.
    // Leave these as they are here: they are implemented here to just
    // throw an UnsupportedOperationException when they are called.
    // Hint: Read carefully the comments for the interface List in the
    // online documentation (Java API).  You can also take a look at the
    // implementation of the LinkedList class from the API. It uses a
    // doubly linked list and it is different in many places from what
    // you need to do here. However it may help you figure out how to do
    // some things. You shouldn't copy the code from there, rather you
    // should try to solve the problem by yourself and look into that code
    // only if you get stuck.
    import java.util.*;
    public class SinglyLinkedList implements List
      // an inner class: This is our node class, a singly linked node!
      private class Node
        Object data;
        Node next;
        Node(Object o, Node n)
          data = o;
          next = n;
        Node(Object o)
          this(o, null);
        Node( )
          this(null,null);
      private Node head; // the "dummy" head reference
      private int size;  // the number of items on the list
      public SinglyLinkedList()
        head = new Node(); // dummy header node!
      public void add(int index, Object element)
      public boolean add(Object o)
        return true;
      public boolean addAll(Collection c)
        return true;
      public boolean addAll(int index, Collection c)
        return true;
      public void clear()
      // write a recursive implementation here
      public boolean contains(Object o)
        return true;
      public boolean containsAll(Collection c)
        return true;
      public boolean equals(Object o)
        return true;
      // write a recursive implementation here
      public Object get(int index)
        return null;
      // NOT implemented: we don't cover hash codes
      // and hashing in this course
      public int hashCode()
        throw new UnsupportedOperationException();
      public int indexOf(Object o)
        return -1;
      public boolean isEmpty()
        return true;
      public Iterator iterator()
        return null;
      public int lastIndexOf(Object o)
        return -1;
      // Not implemented: The following two operations are not supported
      // since we are using a singly linked list, which does not allow
      // us to iterate through the elements back and forth easily
      // (going back is the problem)
      public ListIterator listIterator()
        throw new UnsupportedOperationException();
      public ListIterator listIterator(int index)
        throw new UnsupportedOperationException();
      // write a recursive implementation here
      public Object remove(int index)
        return null;
      public boolean remove(Object o)
        return true;
      public boolean removeAll(Collection c)
        return true;
      public boolean retainAll(Collection c)
        return true;
      // write a recursive implementation here
      public Object set(int index, Object element)
        return null;
      public int size()
        return size;
      // NOT implemented: to keep the homework reasonably simple
      public List subList(int fromIndex, int toIndex)
        throw new UnsupportedOperationException();
      public Object[] toArray()
        Object[] array = new Object[size];
        Node n = head;
        for (int i = 0; i < size; i++)
            array[i] = n.data;
            n = n.next;
        return array;
      public Object[] toArray(Object[] a)
           // you'll find this piece of code useful
        // it checks the exact type of the array passed as a parameter
        // in order to create a larger array of the same type.
        if (a.length < size)
          a = (Object[])java.lang.reflect.Array.
         newInstance(a.getClass().getComponentType(), size);
         else if (a.length > size)
          a[size] = null;
        Node n = head;
        for (int i = 0; i < size; i++)
            a[i] = n.data;
            n = n.next;
        return a;
      public static void main(String args[])
           System.out.println("Singly Linked List");
           System.out.println();
           SinglyLinkedList l = new SinglyLinkedList();
           l.add("F");
    }        how should I implement the print method?
    should I use the iterator?
    can someone help me, please.
    Thank You
    Ennio

    actually, you would do the same thing for a toString() method as you would for a print() method. You are just going to return a String instead of using i/o. I would use an iterator to walk over your list of Nodes and then call toString() on each object in your list of Nodes.

Maybe you are looking for

  • Issue with Region field in BW report

    Hi experts, I am facing an issue with BW Report ,the data for REGION for some billing doc no are showing as # and its description is not assigned.Also there is no data for region in its data target as well and also no data in VBRK table for those bil

  • My itunes of version 11.1.4 is not detecting any of i products

    my itunes of version 11.1.4 is not detecting any of i products, what can i do to make it recognize my iphone,ipod and ipad again?!!!!!

  • Moving email from apple mail to outlook

    Is there a way to move saved emails in folder on apple mail to outlook for MAC  Thanks Randall.

  • How do I edit in Photoshop from Illustrator

    I am running CS4 Master Suite on Mac 10.5.8 and in other CS versions of Illustrator, I could select the image I just placed and click "Edit Original" and the image would then open in Photoshop. Now the "Edit Original" is grayed out. I am sure it's a

  • Flex builder plugin for Eclipse

    Hi, I downloaded flash builder and tried some examples. flash builder is comercial one. For that reason i am trying to configure flex builder  as a eclipse plugin. Flex builder for eclipse plugin is open source/ it is also comercial? Please share me