Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects (Retired) Creating the MVP Comparing Characters

Temitope Isaac Akintunde
Temitope Isaac Akintunde
556 Points

Please help with the question objective for "prompting for guesses" . i am so lost, still racking my head

i am trying to fix the method but honestly do not know how to put it together because in the training we were thought on how to compare characters and not strings with the help of charTo or indexOf depending on what we want to achieve but i just don't know how to put all together since this deals with string lastname.

ConferenceRegistrationAssistant.java
public class ConferenceRegistrationAssistant {

  public int getLineFor(String lastName) {
    /* If the last name is between A thru M send them to line 1
       Otherwise send them to line 2 */
    int line = 0;
    return line;
  }

}

2 Answers

Hi there,

Have a look at this post to see if that explanation helps you out.

Let me know how you get on.

Steve.

Temitope Isaac Akintunde
Temitope Isaac Akintunde
556 Points

thank you so much steve

I have taken you as a mentor for my java

I hope you have gotten a job now in treehouse because the thread you linked me to, you guys mentioned something about teamtreehouse not having vacancy as at then

Temitope Isaac Akintunde
Temitope Isaac Akintunde
556 Points

thank you so much steve

I have taken you as a mentor for my java

I hope you have gotten a job now in treehouse because the thread you linked me to, you guys mentioned something about teamtreehouse not having vacancy as at then

Hiya,

I am glad my answer helped you out! :smile:

No, I don't work for Treehouse; I am based in the UK, they are not.

Steve.