IntelliJ IDEA Java
3 years ago 5
file.gitignore
Week6AssignmentInstructions.docx
file.gitignore
### IntelliJ IDEA ### out/ !**/src/main/**/out/ !**/src/test/**/out/ ### Eclipse ### .apt_generated .classpath .factorypath .project .settings .springBeans .sts4-cache bin/ !**/src/main/**/bin/ !**/src/test/**/bin/ ### NetBeans ### /nbproject/private/ /nbbuild/ /dist/ /nbdist/ /.nb-gradle/ ### VS Code ### .vscode/ ### Mac OS ### .DS_Store
Week6AssignmentInstructions.docx
Week 6's assignment builds upon assignment #2 (so you will need IntelliJ IDEA to complete).
In this week's assignment, you will make change to week 2's project
1) you will create a new class called Employee (see week 4's reading)
public class Employee
{
private int empNum;
}
2) inside Employee...you will create mutator and accessor methods
public void setEmpNum (int emp)
{
empNum = emp;
}
public int getEmpNum()
{
return empNum + 1;
}
3) in the Main class - you will instantiate the Employee class by creating a constructor and passes in a number
Employee someEmployee = new Employee();
someEmployee.setEmpNum( passes in a number);
4) in the Main class - get the number back and print it out w/ your name
// get the number back and print it with your name
System.out.println('Hello, my name is **put your name** and my employee number is: " + someEmployee.getEmpNum());
Zip the helloworld folder (same as in assignment #1) and submit
file.gitignore
### IntelliJ IDEA ### out/ !**/src/main/**/out/ !**/src/test/**/out/ ### Eclipse ### .apt_generated .classpath .factorypath .project .settings .springBeans .sts4-cache bin/ !**/src/main/**/bin/ !**/src/test/**/bin/ ### NetBeans ### /nbproject/private/ /nbbuild/ /dist/ /nbdist/ /.nb-gradle/ ### VS Code ### .vscode/ ### Mac OS ### .DS_Store
Week6AssignmentInstructions.docx
Week 6's assignment builds upon assignment #2 (so you will need IntelliJ IDEA to complete).
In this week's assignment, you will make change to week 2's project
1) you will create a new class called Employee (see week 4's reading)
public class Employee
{
private int empNum;
}
2) inside Employee...you will create mutator and accessor methods
public void setEmpNum (int emp)
{
empNum = emp;
}
public int getEmpNum()
{
return empNum + 1;
}
3) in the Main class - you will instantiate the Employee class by creating a constructor and passes in a number
Employee someEmployee = new Employee();
someEmployee.setEmpNum( passes in a number);
4) in the Main class - get the number back and print it out w/ your name
// get the number back and print it with your name
System.out.println('Hello, my name is **put your name** and my employee number is: " + someEmployee.getEmpNum());
Zip the helloworld folder (same as in assignment #1) and submit
- Can you please help?
- Multiple Questions Answers
- ECO Assignment 3
- for expert_researcher
- Assignment 2: LASA I—Amphetamine Use and Abuse (only need 4 pages)
- exxon valdes case
- Investment bank report
- Ethics in Criminal Justice Practice class has 2 essays
- I need this done free of Plagiarism. Correct APA Format. Pay is $90
- CIS 499 STRAYER. Project Deliverable 2: Business Requirements. Get an A++.