Search:

Type: Posts; User: ghostheadx

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    1,604

    Re: Lab 11.2; trying to shorten code

    My code got a little bit longer. Here it is now:




    public static boolean a (String inputOne, String inputTwo){
    if (inputOne.contains(inputTwo)){
    if inputOne.length() > inputTwo.length(){...
  2. Replies
    3
    Views
    1,604

    Lab 11.2; trying to shorten code

    Here are the instructions:




    Write a static method endsWith that inputs two Strings and returns a boolean. If the first input ends with the substring that is the second input, then the method...
Results 1 to 2 of 2