diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..ab1f416
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,10 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Ignored default folder with query files
+/queries/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..17cb4b1
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..1081dcb
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..712ab9d
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/lab-java-standard-input-and-classes.iml b/.idea/lab-java-standard-input-and-classes.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/lab-java-standard-input-and-classes.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..a1bbc80
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..398d0f7
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lab2/pom.xml b/lab2/pom.xml
new file mode 100644
index 0000000..e2b0b6b
--- /dev/null
+++ b/lab2/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+
+ com.ironhack
+ lab2
+ 1.0-SNAPSHOT
+
+
+ 17
+ 17
+ UTF-8
+
+
+
\ No newline at end of file
diff --git a/lab2/src/main/java/com/ironhack/Employee.java b/lab2/src/main/java/com/ironhack/Employee.java
new file mode 100644
index 0000000..4af22b5
--- /dev/null
+++ b/lab2/src/main/java/com/ironhack/Employee.java
@@ -0,0 +1,89 @@
+package com.ironhack;
+
+//package com.ironhack.envsetup;
+import java.io.File;
+import java.util.Scanner;
+
+public class Employee {
+ private String name ;
+ private String email ;
+ private int age;
+ private double salary;
+ public double salaryLimit;
+
+ public Employee() {
+ }//bu hisse constructordu (yeqin)
+
+ public Employee(String name, String email, int age,double salary) {
+
+ this.name= name;
+ this.email = email;
+ this.age = age;
+ this.salary = salary;
+
+ }
+
+ //burda objecti yaratmaliyam (employee list ucun)
+
+ File myObj = new File("employees.txt");
+ public static void main(String[] args) {
+ try (Scanner scanner = new Scanner(System.in)) {
+ System.out.println("Please enter your name:");
+ String name = scanner.nextLine();
+ System.out.println("Name is: " + name);
+
+ System.out.println("Now enter your age: ");
+ int age = scanner.nextInt();
+ System.out.println("Age is: " + age);
+
+ System.out.println("Enter your salary: " );
+ double salary = scanner.nextDouble();
+ System.out.println("Salary is: " + salary);
+
+ if (salary <= 20000) {
+ System.out.println("Welcome to the company!");
+ } else {
+ System.err.println(" Your salary cannot be over limit. Salary limit: 20000 ");
+ }
+ }
+ }
+ public double getsalaryLimit(){
+ return 20000;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
+ public double getSalary() {
+ return salary;
+ }
+
+ public void setSalary(double salary) {
+ this.salary = salary;
+ }
+ }
+
+
+
+
diff --git a/lab2/src/main/java/com/ironhack/Intern.java b/lab2/src/main/java/com/ironhack/Intern.java
new file mode 100644
index 0000000..a8e9884
--- /dev/null
+++ b/lab2/src/main/java/com/ironhack/Intern.java
@@ -0,0 +1,30 @@
+package com.ironhack;
+
+public class Intern extends Employee {
+
+ private double salaryLimit;
+ public Intern(String name, int age, String email, double salary, int salaryLimit) throws Exception {
+ super(name,email,age,salary);
+ this.salaryLimit(salaryLimit);
+ if (salary > salaryLimit){
+ throw new Exception("Intern's salary can not be higher than the 20000");
+ }
+ this.setSalary(salary);
+
+ }
+ public double getsalaryLimit() {
+ return salaryLimit();
+ }
+
+
+ public double salaryLimit() {
+ return 20000;
+ }
+
+ public void salaryLimit(int i) {
+ }
+ public String getInfo(){
+ return getName() + " " + getEmail() + " " + getAge() + " " + getSalary() + " " + getsalaryLimit();
+ }
+}
+
diff --git a/lab2/src/main/java/com/ironhack/Main.java b/lab2/src/main/java/com/ironhack/Main.java
new file mode 100644
index 0000000..0ae0f7e
--- /dev/null
+++ b/lab2/src/main/java/com/ironhack/Main.java
@@ -0,0 +1,17 @@
+package com.ironhack;
+
+import java.io.FileWriter;
+public class Main {
+ public static void main(String[] args) throws Exception {
+
+ try (FileWriter writer = new FileWriter("demo.txt", true)) {
+ for (int i = 0; i < 10; i++) {
+ Intern intern1 = new Intern("Intern " + i, i + 20, "email + " + i, i + 800, 20000);
+ writer.write(intern1.getInfo());
+ writer.write(System.lineSeparator());
+
+ }
+ }
+ }
+ }
+