Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
<groupId>io.zipcoder</groupId>
<artifactId>MicroLabs-OOP-AliceAndBob</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>19</maven.compiler.source>
<maven.compiler.target>19</maven.compiler.target>
</properties>

</project>
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/main/.DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions src/main/java/Main.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
import java.util.Scanner;

/**
* Created by iyasuwatts on 10/17/17.
*/
public class Main {

public static void main(String[] args ){
//create scanner object
Scanner scanner = new Scanner(System.in);
//create Strings for "Alice" and "Bob"
String name1 = "Alice";
String name2 = "Bob";
//create greeting with name input
System.out.println("Please state your name");
String input = scanner.nextLine();
//if input is "Alice" or "Bob"
if(input.equals(name1) || input.equals(name2)) {
System.out.println("Hello there " + input);
//if input is not "Alice" or "Bob"
} else {
System.out.println("WHO ARE YOU PEOPLE???");
}

}
}