Results 1 to 3 of 3
  1. #1
    MrFish is offline Member
    Join Date
    Jan 2010
    Rep Power

    Default Text Format Error


    Hello, this is my first post here. I'm trying to complete a java homework assignment from school and I'm getting two errors that look like this-

    --------------------Configuration: <Default>--------------------
    C:\Users\Karen\Desktop\Micah\java\ 106: cannot find symbol
    symbol : variable Format
    location: class CollegeGPA
    System.out.println(Format.justify('l',name,19) + grade
    C:\Users\Karen\Desktop\Micah\java\ 106: operator + cannot be applied to Format.justify,int
    System.out.println(Format.justify('l',name,19) + grade
    The relative code to this error is this

    Java Code:
    104:	public static void printLine(String name, int grade, int hours, int points)
    105:	{
    106:		System.out.println(Format.justify('l',name,19) + grade
    107:		+ Format.justify('r',hours,8)
    108:  + Format.justify('r',points,10));
    109:	}
    Any ideas? Any help would be great! :D
    Last edited by MrFish; 01-13-2010 at 02:08 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    What is the Format class that you are using and what does its justify method look like? I've not seen anything like this before.

  3. #3
    MrFish is offline Member
    Join Date
    Jan 2010
    Rep Power


    Maybe I forgot to download a file from my school folder. Let me check, I believe it's from java.text.Format


    Haha, oops. I just found there was a Format.class file I was supposed to use as well. Thanks though!

Similar Threads

  1. BlueJ help! weird error text meesed up
    By linux1man in forum Other IDEs
    Replies: 6
    Last Post: 02-07-2013, 04:54 PM
  2. Replies: 2
    Last Post: 01-23-2009, 05:09 PM
  3. how to convert one format to another format
    By mahipal_reddy621 in forum New To Java
    Replies: 1
    Last Post: 12-02-2008, 11:21 AM
  4. Format
    By 2ndis1stplaceloser in forum New To Java
    Replies: 2
    Last Post: 10-21-2008, 06:38 AM
  5. Replies: 0
    Last Post: 05-26-2008, 04: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