Skip to content

Commit be225a1

Browse files
committed
Exercise 9-H
1 parent 2fa82d2 commit be225a1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

ch09/Exercise9H.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
public class Exercise9H
2+
{
3+
public static void main(String[] args)
4+
{
5+
System.out.println(isFinn("Finn"));
6+
System.out.println(isFinn("Jake"));
7+
8+
}
9+
10+
private static boolean isFinn(String adventure)
11+
{
12+
String theHuman = "Finn";
13+
14+
return (adventure.equals(theHuman));
15+
}
16+
}

0 commit comments

Comments
 (0)