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

    Default Hey need some quick tips

    System.out.println("CSCI 1011\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Name: John\nProject #1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Due: Wednesday, February 23, 2011");
    System.out.println(" 真真真真真真真\t???\t???真\t\t??\t????????????? ?真\t?\t??\t??????????????真\t?\t??\t?真???? ???\t");
    System.out.println("B = > \"Blue\"\nL = > \"Lanikai\"\nP = > \"Pineapple\"");
    System.out.println(" 真真真真真真真\t???\t???真\t\t??\t????????????? ?真\t?\t??\t??????????????真\t?\t??\t?真???? ???\t");
    System.out.println("\t\t\t\\o/ \\o/ \\o/ \\o/ \\o/ \\o/ \\o/\t\t\\o/ \\o/ \\o/ \\o/ \\o/ \\o/ \\o/\t\t\\o/ \\o/ \\o/ \\o/ \\o/ \\o/ \\o/\n\t\t\t T O M S T E R\t\t T O M S T E R\t\t T O M S T E R\n\t\t\t / \\ / \\ / \\ / \\ / \\ / \\ / \\");

    This is for my first project and I was wondering if there is a shorter way to make bigger spaces besides /t/t/t/t? or are we able to define a variable for a a set amount of spaces? (I know the project looks stupid, but we all have to start somewhere :) )

    Also, Is there a way in Jcreator to look at all the code without having to scroll all the way right? This gets annoying when i have to edit something I need to put the cursor and hit the right key to get to my destination. My first time using Java and any help would be appreciated.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Rep Power


    The PrintWriter class is where all the print and println methods are located. That class also has a printf method.

    Another option is the String.format method which basically does the same thing.

Similar Threads

  1. Recursion tips?
    By MojoeMAN in forum New To Java
    Replies: 1
    Last Post: 01-02-2011, 06:36 AM
  2. i need some tips on this question
    By reeveliew in forum New To Java
    Replies: 13
    Last Post: 06-15-2010, 06:29 PM
  3. need some derby tips:
    By kulangotski in forum Advanced Java
    Replies: 4
    Last Post: 03-09-2009, 06:09 PM
  4. Need some tips.
    By PVL268 in forum New To Java
    Replies: 4
    Last Post: 02-27-2009, 03:37 PM
  5. First project, need some tips..
    By Komala_aradhya in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 02:25 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