Results 1 to 3 of 3
Thread: Text Format Error
- 01-13-2010, 12:56 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 43
- Rep Power
- 0
Text Format Error
SOLVED
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-
The relative code to this error is this--------------------Configuration: <Default>--------------------
C:\Users\Karen\Desktop\Micah\java\CollegeGPA.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\CollegeGPA.java: 106: operator + cannot be applied to Format.justify,int
System.out.println(Format.justify('l',name,19) + grade
Any ideas? Any help would be great! :DJava 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: }Last edited by MrFish; 01-13-2010 at 01:08 AM.
-
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.
- 01-13-2010, 01:06 AM #3
Member
- Join Date
- Jan 2010
- Posts
- 43
- Rep Power
- 0
Similar Threads
-
BlueJ help! weird error text meesed up
By linux1man in forum Other IDEsReplies: 6Last Post: 02-07-2013, 03:54 PM -
how to use live validation with autocomplete in dojo text boxes in <s:text box>
By subashm28 in forum Suggestions & FeedbackReplies: 2Last Post: 01-23-2009, 04:09 PM -
how to convert one format to another format
By mahipal_reddy621 in forum New To JavaReplies: 1Last Post: 12-02-2008, 10:21 AM -
Format
By 2ndis1stplaceloser in forum New To JavaReplies: 2Last Post: 10-21-2008, 06:38 AM -
Unsupported Content-Type: text/html Supported ones are: [text/xml]
By luislopezco in forum Advanced JavaReplies: 0Last Post: 05-26-2008, 04:26 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks