Results 1 to 4 of 4
  1. #1
    jon80's Avatar
    jon80 is offline Senior Member
    Join Date
    Feb 2008
    Location
    Malta (EU)
    Posts
    211
    Rep Power
    7

    Default [SOLVED] [newbie]

    See anything wrong here?

    Java Code:
    public class EmployeeTest {
    	
    	public static void main(String[] args) {
    	....
    		//print out information about all Employee objects
    		for (int i=0; i < staff.length; i++)
    		{
    			Employee e = staff[i];
    			System.out.println("Name: " + e.getName()) + "| Salary: "| + e.getSalary() + "| HireDay: " + e.getHireDay());
    //See anything wrong here?
    //Error: The operator | is undefined for the argument type(s) //java.lang.String, java.lang.String
    			
    		}
    	...
    
    }
    Related links:
    1. Java Tips - Character Escape Codes in Java

    :confused:

    NOTE: Wanted to update the subject but it was not possible.
    Last edited by jon80; 05-10-2009 at 06:14 PM.

  2. #2
    jon80's Avatar
    jon80 is offline Senior Member
    Join Date
    Feb 2008
    Location
    Malta (EU)
    Posts
    211
    Rep Power
    7

    Default

    Sorted this out sorry :)

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Yep, misplaced quote. Congrats on solving it. If you could, please mark this post "Solved".

    Happy coding!

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    And also, please use a descriptive title for your question next time. The title which you used at this thread doesn't make any sense to look at the question for me. I guess same for others.

Similar Threads

  1. Newbie Help
    By mattkid in forum New To Java
    Replies: 4
    Last Post: 03-25-2009, 04:55 AM
  2. I am newbie
    By Seoplanner in forum Introductions
    Replies: 0
    Last Post: 11-11-2008, 01:22 PM
  3. :) newbie...........
    By Somitesh Chakraborty in forum Introductions
    Replies: 1
    Last Post: 08-19-2008, 09:00 AM
  4. newbie newbie newbie
    By krislogy in forum New To Java
    Replies: 9
    Last Post: 08-15-2008, 12:28 AM
  5. newbie needs help...
    By vicky08 in forum New To Java
    Replies: 2
    Last Post: 03-31-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
  •