Admin[dElmARk] Forum Owner
Posts : 78 EC-Points : 6304 Thanked : 21 Join date : 15/10/2011 Age : 29 Location : Philippines
Hacker's Info Hacking Exp: (0/0) Hacker Type: White Hat Hacking Title:
| Subject: Employee Java Fri Nov 25, 2011 11:14 am | |
| StartEmployee.java - Code:
-
public class StartEmployee{ public static void main(String []args){ Employee del= new Employee(); del.ln="Aguilar"; del.Fn="John Delmark"; del.Dept="Information Technology"; del.pos="P.R.O"; del.age= 16; System.out.println("Employee FName: "+ del.ln+"\nEmployee LName: "+ del.Fn+"\nDepartment: "+ del.Dept+"\nPosition: "+ del.pos+"\nAge: "+ del.age);
} } Employee.java - Code:
-
public class Employee{ String ln, Fn, Dept, pos; int age; public static void doWork(){ System.out.println("Programming"); } public String doBreak(){ return "Eating"; } public void doRest(){ System.out.println("Resting at the park"); } public int getWage(){ return 1000; } } |
|
RNPrincess Head Moderator
Posts : 17 EC-Points : 28 Thanked : 3 Join date : 06/12/2012 Location : Makati City
| Subject: Re: Employee Java Sat Dec 15, 2012 2:34 pm | |
| Can you post the output for this program? I just want to see what does this code do, unfortunately i don't have JCreator with me. I'm having a hard time looking for site which offers free download of JCreator (full version not the free trial). Can you please post the output. Please. . . |
|
Admin Head Admin
Posts : 64 EC-Points : 3148 Thanked : 6 Join date : 14/10/2011
| Subject: Re: Employee Java Sat Dec 15, 2012 2:36 pm | |
| |
|
Admin Head Admin
Posts : 64 EC-Points : 3148 Thanked : 6 Join date : 14/10/2011
| Subject: Re: Employee Java Sat Dec 15, 2012 2:39 pm | |
| We'll talk it on fb chat. ^_^ |
|
RNPrincess Head Moderator
Posts : 17 EC-Points : 28 Thanked : 3 Join date : 06/12/2012 Location : Makati City
| Subject: Re: Employee Java Sun Dec 16, 2012 1:51 am | |
| Ok, i'll add you as soon as I got home. |
|
Sponsored content
| Subject: Re: Employee Java | |
| |
|