Skip to content

Commit f3c9422

Browse files
Merge pull request #3 from fsoftwareengineer/feature/tutorial-1
tutorial-1:separate Contact from Main class
2 parents 8a2b5b7 + 77b193c commit f3c9422

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Ignore Idea file
2+
.idea/
3+
4+
#Helloworld file
5+
HelloWorld.iml
6+
7+
#build files
8+
out/
9+

src/Contact.java

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class Contact {
2+
String name;
3+
String email;
4+
String phoneNumber;
5+
}

src/Main.java

-6
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,4 @@ private void delete() {
8585
System.out.println("Removed " + c.name);
8686
}
8787
}
88-
89-
class Contact {
90-
String name;
91-
String email;
92-
String phoneNumber;
93-
}
9488
}

0 commit comments

Comments
 (0)