Search:

Type: Posts; User: theaveguy

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    1,552

    Re: Contain method to read array

    I kind of understand what you mean, but I do not know how to go about implementing a method like this.

    Method I am trying to use from API


    public boolean containsArray(CharSequence s)
    ...
  2. Replies
    8
    Views
    1,552

    Re: Contain method to read array

    I am looking for a method that works like "contains" but for arrays, so i want it to parse the array to see if any of the variables match with an if statement and if not return false.

    Is there no...
  3. Replies
    8
    Views
    1,552

    Re: Contain method to read array

    This is how the contains method is defined

    type boolean
    method contains(CharSequence s)
    description Returns true if and only if this string contains the specified sequence of char values.

    I...
  4. Replies
    8
    Views
    1,552

    Re: Contain method to read array

    Any help? I would really like to get my program going, I was searching the String API Docs and only saw things pertaining to char/string nothing about array/sting.
  5. Replies
    8
    Views
    1,552

    Contain method to read array

    I am trying to find a method to read an array like this.



    String[] operators = {"+", "-"};
    if(operation.contains(operators))
    System.out.println("noob");
    else ...
Results 1 to 5 of 5