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
1 change: 1 addition & 0 deletions comp-cli/src/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(self, first=None, last=None):
self.compensation = 0

def store_religion(self, religion):
# TODO: something else
self.religion = religion

def compute_pay(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ public static void findEvenOdd(int num) {
System.out.println(num + " is odd");
}

public static void findOddEven(int num) {
// method body
if (num % 2 != 0)
System.out.println(num + " is odd");
else
System.out.println(num + " is even");
}

public String toString() {
// method body
return "Hello you";
Expand Down