Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: I get an error

Threaded View

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Location
    Left coast - US
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default I get an error

    //This is my first java assignment
    //create an employee class with the following attributes: name, age, department

    //Here is what I wrote...
    //I get an error at line 5


    1 public class employee {
    2	
    3	String name[] = {};
    4	int age[] = {};
    5	var dept[] = {};
    6
    7
    8 }
    Last edited by jps; August 13th, 2013 at 11:36 AM. Reason: code tags


Similar Threads

  1. Please! Help me to this error "ERROR CANNOT FIND SYMBOL"
    By mharck in forum Object Oriented Programming
    Replies: 8
    Last Post: July 3rd, 2012, 09:20 AM