X937: Returning a Boolean Statement

For this question, you are writing a method for a class Person with the following constructor (which also shows the field names):

public Person(int a, int n)
{
    this.age = a;
    this.luckyNumber = n;
}

Write a method that will return true if age is greater than or equal to luckyNumber or false otherwise. Do this without using an if statement--just use one return statement with an appropriate expression.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.