Results 1 to 2 of 2
  1. #1
    sqlsql0 is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default Modifying output

    I am using Java through BlueJay and I have an output in the Terminal windows like this:
    Author Name:Book Title:Book Edition:Publication Year:Publisher Name: Book ISBN:
    Ginger Table Shone 1 1987 Publicating Monn 134343344

    The format is clearly not good or nice :mad:

    I would like a method that checks the longest string for each item, author name, book title etc and arranges with spaces so that the output is good to be viewed.

    can someone help pl ?


  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Okay? So where is your attempt at it?

    In any case, cycle through your list (I assume you have a list) and get those "max lengths", then use printf instead of println.

Similar Threads

  1. Need help modifying code for hex conversion
    By gamer765 in forum New To Java
    Replies: 14
    Last Post: 10-25-2010, 06:59 AM
  2. One Jspinner modifying the value of the other
    By cotarelo in forum AWT / Swing
    Replies: 1
    Last Post: 06-11-2010, 02:48 PM
  3. Modifying text file
    By right2001 in forum New To Java
    Replies: 7
    Last Post: 04-13-2009, 08:41 AM
  4. Modifying text file
    By right2001 in forum New To Java
    Replies: 7
    Last Post: 04-08-2009, 01:18 AM
  5. Modifying JSP using IntelliJ IDEA 6.0.5
    By ddeokarb in forum IntelliJ IDEA
    Replies: 0
    Last Post: 11-28-2008, 02:26 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