LOL - yep, i guess im lost.
Read the 'Small Java' How To Program book
after reading, i try to follow the diagrams they show me -- basically im seeing the class being built
public class Gradebook
private String courseName;
public void setCourseName( String name )
course name = name;
i am missing some characters, i know - but its basically that...
User Profile
Collapse
-
lol, this is cracking me up, @ work right now losing my mind with this.
and yea - i felt there was more that needed to be added because i had an extra mark in there which was giving me an error, which is why i added the semi-colon.
import java.util.Scann er;
public class Employee {
private String firstName;
private String lastName;
private double salary;
...Leave a comment:
-
public class Employee {
private String firstName;
private String lastName;
private double salary;
public Employee( String firstName, String lastName, double salary);
}
i am getting this when compiling::'
Lab1/Employee.java [7:1] missing method body, or declare abstract
public Employee( String firstName, String lastName,...Leave a comment:
-
i love you guys, thanks so much it does help a lot !!!
I will try to write this out, if i get stuck, ill be back :) printing this
God Bless!Leave a comment:
-
I've really had a tough time
so is this two separate codes? [i am using NetBeans IDE]
based on your response --- this is as far as i got without re-confusing myself :)
public class Employee {
public Employee() {
}
}
Class was started, but what exactly do i do to create the instance variables [could i get any sample code or...Leave a comment:
-
Java Question - i am REALLY confused
Hi all,
I am taking a Java Course in Michigan to get into the flow of things , but i am completely stuck on one of the Labs.
Here is what the Lab Asks for -
Create a class called 'Employee' that includes three pieces of information as instance variaveles -- a first name (type String), a last name (type String) and a monthly salary (double). Your class should have a constructor that initializes the three...
No activity results to display
Show More
Leave a comment: