How to setup methods for printing headings.

import java.io.*;
  import java.util.*;
  import java.text.DecimalFormat;
  public class Prog5
          public static void main (String[] args) throws IOException, FileNotFoundException
               //Declare Variables
               int month;
               double orig_balance,new_balance,monthly_interest,min_payment;
               String name,total_interest,grand_total;
               char credit_risk;
               String inputLine;
               StringTokenizer tokenizer = null;
               //Input
               BufferedReader input =
                    new BufferedReader (new FileReader("c:\\desktop\\Java5_credit.txt"));
               PrintWriter outfile =
                    new PrintWriter(new FileWriter("c:\\desktop\\output.txt"));
               inputLine = input.readLine();
               while(inputLine != null)
                    tokenizer = new StringTokenizer (inputLine);
                    name = tokenizer.nextToken();
                    orig_balance = Double.parseDouble (tokenizer.nextToken());
                    min_payment = Double.parseDouble (tokenizer.nextToken());
                    credit_risk = tokenizer.nextToken().charAt(0);
                    //detail
                    monthly_interest = orig_balance * (.18/12);
                    new_balance = (monthly_interest + orig_balance) - min_payment;
                    outfile.printf("\f");
                    outfile.printf("%-11s %8.2f %9.2f %7c\n",name,orig_balance,min_payment,credit_risk);
                    inputLine = input.readLine();
               outfile.close();
I need help with this code on setting up methods for printing headings that are on separate pages, headings are: Name, Original Balance, Minimum Payment, and Credit Risk

Charlie5683 wrote:
I have an ipad2 and have printed form it before. I am connected to the network as is the printer. I am able to print form my PC . But am unable to print from my iPad as before. Are the some special settings in the iPad that may have changed?
Try restarting your WiFi router and printer by removing power to them for 30 seconds.

Similar Messages

  • How to setup a wireless printer

    I was wandering if anyone out there knows how to setup a wireless printer without spending a lot of money. I have a dell photo 962 printer and a wrt54g router. I have tried to setup the printer on my laptop but it will not let me do so unless I connect it directly to the printer. My computers are running windows xp. Thanks for your help.

    well for that you need to setup a printer as network printer, if your printer have networking capabilities...if not then you need to buy print server...

  • How to setup variants for webdynpro report in ABAP? Help!

    Hi Experts,
       I have a webdynpro for ABAP report with selection screen. 
       How to setup variants for webdynpro report in ABAP?
    Thanks
    Gopal

    Hi Gopal,
      There is no concept of Variant in Webdynpro ABAP. But in our project we have some tool to do that. Its not release to the client I think. In my scenarieo, We create the Screen variant and program name will be supplied to the tool that will generate the ouput in PDF and Selection screen in One view. But the same is not avilable .
    If you want the same concept in Webdynpro ABAP, you need to go for Dynamic programming only. This is the only option is avilable.
    Warm Regards,
    Vijay

  • How to setup a network printer via http

    I have a router with a USB printer attached to it. It looks like this:
    Printer status: Ready
    Printer location: http://192.168.2.1:1631/printers/My_Printer
    In Windows you setup a network printer and the printers address is the http address above. How do you add this type of printer in the printer setup utility on Mac OSX 10.4.11 and 10.5.x?

    For OS X 10.5, you use the following settings
    As mentioned by bdaqua, open Print & Fax and click the IP icon and then select IPP from the top drop menu. Then in the Address field just enter the IP address; don't enter the leading 'http://' and don't enter the :631 (the mere fact that you have selected the IPP protocol means that it will communicate on port 631)
    Then in the queue field you can enter printers/My_Printer, although some router perform a translation for the shared printer so you only need to enter the shared printer name in the queue field.
    As for the name and location fields, these are just free text for the local user and have no bearing on the queue details.
    And as for 10.4 I have no idea or way to test this at home. But if you use a mix of mine and bdaqua's information you should be okay.

  • How to setup QoS for IP/Mac Address WRVS4400N

    I need some help setting up QoS for two Cisco/Linksys devivces on my network. 
    Network devices are Comcast SB6120 modem into WRVS4400n (v2.0.2.1 firmware) that divides into one 24 port gigabit Netgear unmanaged switch, 1 port into AT&T Cisco Microcell, 1 port to HP Officejet 7700 wired printer.  Unmanaged switch has approx 10 devices attached (including another 8 port unmanaged gigabit switch).  3 static leases are defined for the network for three devices (HP OJ 7700 printer, Cisco/Linksys PAP2 VOIP adapter, windows home server v1.  DHCP is handled by WRVS4400n.  Comcast service provides 12mbps of service upstream, 4mbps downstream.
    Need to setup QoS for AT&T Microcell and PAP2 VOIP adapter.  The real issue that I can't figure out how to configure is IP based priority access.  I can do rate control for an IP address but can't figure out how to specify priority control for an IP.
    Here are my the current config questions:
    1.  Bandwidth management page:  For the microcell device plugged into port 1, do i set the default CoS to 4 or 1?
    2.  Bandwidth management page:  Should the bandwidth management type be set to priority?  I assume yes since I need to define the UDP/TCP ports for priority.  The major issues here are
    a) one of the ports the Microcell uses is secure https (TCP 443) which is could also be used by any other internet device. 
    b) can't specify priority for the PAP2, since it's behind the unmanaged 24 port switch
    3.  QoS setup page:  Do I need just 2 queues (one for the port ID for the Microcell and one for the IP address of the Linksys adapter)?
    4.  QoS setup page:  I assume I need to define DSCP for the unmanaged switch but not sure how to tie a queue to an IP address
    4.  QoS setup page:  Shoud priority 0 be set for the most important queue (microcell) and the priority 1 CoS be for the VOIP adapter?  Again, not sure about how to define priority by IP address.
    5.  DSCP setup page:  As far as I can find, there's no documentation on how to setup this page.   

    That's what I do. I keep it simple, one calendar, one set of contacts.
    iCloud is really the simplest way to go, as it will sync your (eventual) single Contacts and Calendar across all your devices.
    I would:
    Figure out which single calendar (in Calendar.app) and contacts (in Contacts.app) that you want to keep.
    I'd make a backup of each one. For example,
    in Contacts, File > Export... > Contacts Archive...
    in Calendar, File > Export... > Calendar Archive...
    Make a backup of the other calendar events and contacts that you want to save.
    delete all the contacts and calendars from your phones and your iPad.
    add the contacts and events from the backups to the single calendar in Calendar.app and your contacts in Contacts.app on your iMac. There is probably some way to export the contacts and events you are adding, and then combine them, but you could also just add them manually.
    Then when you configure all your devices for iCloud, they will be all synced automatically.
    Message was edited by: arthur

  • Two printers with different paper sizes. How to setup defaults for each?

    I have two printers connected to my beloved Mini: Samsung ML-1610 & Epson AccuLaser C1100.
    First printer uses American Quarto US Letter paper.
    Second one - European A4.
    Every time I try to print anything on either of them I receive a message from printer driver that paper size mismatched. Further more either printer will wait until I press buttons on them to "proceed". Which is very annoying to say the least.
    How can I setup defaults for every printer in Mac OS Leopard? If I use printer preferences dialog it will setup either size for both printers rather than for each its own.
    Please advise.

    PAHU wrote:
    You cannot do exactly what you want from a user interface perspective. I am not sure if such a thing is possible by making changes to hidden files. I certainly haven't heard of it but it may still be possible.
    From what I have seen, the page setup dialog is independent of the print dialog. If you set the 'Format for' to one printer, a then choose a different printer when you print, the previous settings won't apply.
    You could see if the printer set to A4 supports automatic conversion of LTR to A4. Then at least it won't ask for attention when you send a LTR page to it. Otherwise I think your only option is to check before you print that you have selected the correct paper size for the printer.
    PaHu
    That's freaking ridiculous!!!
    You've got to be kidding me... right?
    Even MacOS 8 could do this.
    Like it's horrible for me because I print a lot of photos. So I set my default paper type Format for: Canon MP610 series, Paper Size: US Letter (borderless). But then when I go home and print web pages or text documents on my Apple LaserWriter 16/600 PS, then it still remains set to Format for: Canon MP610 series. The freaking OS knows what printer I'm using; why would it remain formatted for the other printer even though that will cut off the edges of all my prints (since the LaserWriter does not do borderless printing) -- and not even warn me?! I just wasted 30 pages!
    I cannot tell you how preposterous it is that a modern OS like Mac OS X cannot even get a simple thing such as printing correct. How could they screw up PRINTING?!
    -Jon

  • How to setup SSL for Business Objects

    Dear colleagues,
    can you help with the following issue: we want to setup SSL for BO and have dedicted information for the implementation of certificates and know that sapcryptolib needs to be used. But there is no information provided how to inform BO about the location of the sapcryptolib. Can anybody provide a hint for this? Many thanks in advance.
    Best regards,
          Detlef Kreiss (HP Outsourcing services)

    Detlef,
    The SAP Crypto library is not required if you are simply trying to secure the webserver using SSL.
    Securing IIS (.NET infoview, or IIS fronting a Java application server) is pretty simple as you would follow the same steps to SSL secure it as you would any IIS server (there is an add certificate button in the properties of IIS).
    If you are using a Java Application server solely and want to SSL secure that, there is an SAP note to describe the steps required to add an SSL certificate to the (Tomcat) Java keystore.
    Please see:
    1299147 - How to setup SSL on Tomcat in Business Objects Enterprise XI 3.1?
    https://bosap-support.wdf.sap.corp/sap/support/notes/print/1299147
    -Brian

  • How to use AVDocPrintPagesWithParams for printing without any prompt dialog or alert message ?

    Hi Friends,
    I have a problem to print the pages of a pdf, but with out any dialog box prompt. So I choosed the api AVDocPrintPagesWithParams(avDoc, avDocPrintParam);
    But I don't know how to set parameter for 2nd parameter of the funtion. My requirement is I want to print pdf's using default printer of the system i.e. Print As PDF using Abode PDF print.
    Page Dimension should be same as previous, with postscript value 3 (best print).
    I have used AVDocPrintPages (AVDoc doc, ASInt32 firstPage,ASInt32 lastPage, ASInt32 psLevel, ASBool binaryOK,ASBool shrinkToFit); But it gives an error message for some pdf's that PDF may not printed correctly because font information couldn't be found.
    So can anyone let me know please how to set the parameter of AVDocPrintParam, so that I can use AVDocPrintPagesWithParams and do the same job.
    Thanks and Regards,
    Saffiuddin Sheikh.

    Dear lrosenth,
    I am into an operation where I have check whether each objects falls inside my rectangular region or not. For this I am taking help of BBox and matrix information. The problem is that when I find PDF's those have form or container objects, their matrix and BBox is depenedent on matirx of the form or container containing them.
    In most cases by adding(concetinating ) the matrix value of form and the element gives the correct matrix, BBox value, but some cases I am yet to understand the behaviours. So to avoid these form and container for our immidiate project delivery, we are using this option to print the pdf and then process for checking the position of elements.
    My original requirement is :
    How to know objects position inside a form or container ?  
    This is just an alternative time being way to achieve the task. But if you have any idea of how to detect postion of objects inside form/container then please let me know. 

  • HT4356 how to configure airprinter for printer brother dcp-j315w

    i want to configure airprinter for Printer Brother DCP-J315W. how to do it??

    You can't, that is not an Airprint compatible model. See if Brother has an app you can use to print.

  • NewbieQuestion: How to setup OCCI for Visual C++ 6

    I'm new to OCCI and Visual C++, Please help to illustrate how to setup OCCI environment for Visual C++ 6
    Thanks in advance

    Check make.bat under %ORACLE_HOME%\rdbms\demo on how to compile OCCI programs in Windows. OCCI samples can be found in %ORACLE_HOME\rdbms\demo and in :-
    http://www.oracle.com/technology/sample_code/tech/occi/index.html
    Regards,
    Shankar

  • Im looking how to find driver for Printer HP 2300 driver window 8 (64BIT) PLEASE help !!! stuck

    Hi ,
    I need help how to find driver for my old printer HP 2300d I use USB Cable for my Laptop window 8 (64 bit)
    help I am stuck can't print anything.
    Kim

    Hi, Welcome to hp forums and enjoy your stay, feel yourself like home here!
    I am very sorry to hear this, I will try my best to help you, I am always glad to help!
    Please follow the steps i provided below:
    1. http://windows.microsoft.com/en-ca/windows7/automatically-get-recommended-drivers-and-updates-for-yo...
    Now refer to the below link and right click your printer device
    2. http://pcsupport.about.com/od/windows-8/a/update-drivers-windows-8.htm
    Sorry because of different timezone I might not be able to help/reply you right away.IF that happens I deeply apologize!
    **Click the White thumb if you like the answer.**
    **Please mark Accept As Solution if it solves your problem and only solves your problem, if you have any more questions please ask, this also helps others to solve related issues.**
    Feel yourself like home here, we are all happy to help, if you have an question reply or start a topic or pm me or an expert.

  • How to setup CTS+ for BODS 4.1 systems

    Hi all,
    I am trying to setup CTS+ for BODS systems to transport the objects from dev--> QA---> Prod.
    I Couldnt find any document which explains about CTS+ for BODS systems.
    I have some knowledge on how CTS+ works and worked on CTS + for EP and PI.
    Can someone let me know the steps involved in setting up CTS + for BODS 4.1 systems.
    Thanks
    Vimal.SMR
    Message was edited by: Andy Silvey

    Hi Vimal,
    see if this OSS Note helps:
    1762987 - How to configure LCM with CTS+
    Kind regards,
    Andy.

  • How to setup dreamweaver for synchronizing  website?

    Hi, I'm trying to setup dreamweaver 8 in a way that mimics my
    online website. The problem I am having is that on my real sites'
    server I have placed most of the files outsite the public root
    (security reasons), and I'm not sure how to setup dreamweaver so I
    can synchronize with this. I am running a WAMP configuration for my
    test / development machine.
    Online website structure:
    some_folder
    -source code
    - includes files etc..
    public_html (document root)
    - html files
    -images
    -css
    An example of how my apache virtual host is setup
    Document Root: C:\mysite\public_html //This works fine...
    If I setup a site in dreamweaver that uses C:\mysite as the
    root, the setup resembles the online one. But there is a problem
    with this because it uses C:\mysite as the "document root" whereas
    the folder C:\mysite\public_html should be the document root. Now
    if I change my document root to C:\mysite\public_html then I don't
    have access to any of the files above this directory... I'm kind of
    screwed with each option I take...

    Here are the email server settings that work for me on iMac or iPad using Mac Mail program.
    Verizon changed to different email server.
    Make sure password for account is correct by resetting password:
    Reset password by clicking "I cannot access my account link" on page or login below
    https://login.yahoo.com/config/login?.intl=us&.partner=vz-acs&&.lang=en-US&.intl =US&.done=http://hom...
    Enter username here to reset password :https://signin.verizon.com/sso/forgotflows
    Passwords must match for verizon yahoo & verizon account.
    email server settings:
    Example
    Name: john smith
    email address:[email protected]
    user name: john smith (Do not use full email address here)
    Incoming Mail Server: incoming.yahoo.verizon.net
    SSL: on (Port 995)
    Authentication: Password
    Outgoing Mail Server: outgoing.yahoo.verizon.net
    SSL: on (Port 465)
    Authentication: Password
    user name:johnsmith
    Password: current password for account
    Save all settings and check for new email. Good luck.

  • How to config NACE for printing debit memo request ?

    hi,
    I've tried to config with the transaction NACE for SAtype GV ( debit memo request )
    In SPRO in config :
    GV     Deb.MemoReq. f.Ctrct     V10000     Order Output     ZBA0     
    but then I used the transaction VA02 to print document header, The status is always in yello ( not processed ) , I do not know why , could you please help me ?
    Thanks

    hi,
    I used Analyse determination and it show me that :
    The "output not found" Access 10, message 450.
    and the description:
    Diagnosis
    No valid output conditions found for the application object.
    System Response
    For this reason no output proposal was created.
    Procedure
    Execute function
    I do not know the reason why .  This is for printing a billing request ( GV)

  • How to create labels for printing?

    Hi, I am trying to find an automated way of creating a series of labels containing different information for printing purposes...

    Pages doesn't have any automated label function. If you do a search in the Pages forum you might get answer for workarounds. Thera are more label specific programs to get on the Internet like "Labels & Addresses"
    Also have a look at _http://www.freeforum101.com/iworktipsntrick/_

Maybe you are looking for

  • Width of grid disp. using CL_GUI_DOCKING_CONTAINER

    Hi, I am using CL_GUI_DOCKING_CONTAINER for grid display in the same selection screen. I am getting the output. But i am not able to reduce the width of the grid. It is taking the entire screen space below. I have tried changing ratio and extension o

  • Oracle application concurrene manager

    Hi, n you tell me how to find out incompatibility resquest in oracle application 11i. Regards Ramesh T

  • Stiff Battery cover for Lumia 520

    Today I configured my first Lumia 520 and it was an 'interesting' experience. I have 2 complaints: 1. Whilst the battery cover adds a nice feel to the phone, it is stiff and very difficult to peel off. 2. The online instructions provided for peeling

  • Office 365 - Outlook error message when sending an email

    Error Message: "The operation failed. The message interfaces have returned an unknown error. If the problem persists restart Outlook." By simply recreating a new email with the same message I am able to send. In most cases there are a lot of attachme

  • Adding video to webpages

    Hi guys Can you help me out. I have added video to my website (10 mp4 files) and embedded it using the active x function. Now when I test them on my Mac they work fine. I have checked it on other macs at work and everything runs great. The vids load