Zylith Zen

Ranch Hand
+ Follow
since Jan 21, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
18
Given in last 30 days
16
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zylith Zen

i think i fixed the constructor but this error came up

/RunEmployee.java:30: error: constructor Employee in class Employee cannot be applied to given types;
   private FullTimeEmployee() {
                                           ^
 required: String
 found: no arguments
 reason: actual and formal argument lists differ in length
/RunEmployee.java:74: error: constructor Employee in class Employee cannot be applied to given types;
   private PartTimeEmployee() {
                                            ^


this is what i did in the 2 classes

1 day ago
But theres no real value since the user have to input the name, monthly salary, rate per hour, hours worked and wage
4 days ago
im trying to create object of the 2 but idk how to fix it

/RunEmployee.java:98: error: constructor FullTimeEmployee in class FullTimeEmployee cannot be applied to given types;
       FullTimeEmployee fullTimeEmployee = new FullTimeEmployee();
                                                               ^
 required: String,double
 found: no arguments
 reason: actual and formal argument lists differ in length
/RunEmployee.java:99: error: constructor PartTimeEmployee in class PartTimeEmployee cannot be applied to given types;
       PartTimeEmployee partTimeEmployee = new PartTimeEmployee();
                                                                 ^
5 days ago
other than that. what else is wrong?
6 days ago

Jesse Silverman wrote:I don't see how this code even compiles at the moment:



Why?
6 days ago
Like this?

6 days ago
is this right?

6 days ago
oh sorry. wrong choice of word. i meant an option. nevermind that and yes i do
6 days ago
is it more complicated if i put the prinlns in the main method?
6 days ago
so it has to be in the main? as well as the others?
1 week ago
I don't know why it says these errors

/RunEmployee.java:16: error: <identifier> expected
   System.out.println("Enter name: ");
                     ^
/RunEmployee.java:16: error: illegal start of type
   System.out.println("Enter name: ");
                      ^
/RunEmployee.java:17: error: <identifier> expected
    name = s.nextLine();
        ^
/RunEmployee.java:53: error: ';' expected
public void emp() {
               ^
/RunEmployee.java:63: error: illegal start of expression
public class RunEmployee {
^

i think my main class is a mess (i think all of it is a mess). i need someone's knowledge to help me with this. My brain is drained.
so here's the mess. sorry in advance

1 week ago

Carey Brown wrote:
I may have steered you slightly off  course, I believe this belongs in writeOutput().



its okay i figured it out
1 week ago
Oh sorry. I just didn't put 'this.' But its fine now. I already passed it
Thanks a lot for your help
1 week ago
why was the output null and 0
1 week ago
1 week ago