Java List Compare compare(String str, List list)

Here you can find the source of compare(String str, List list)

Description

compare

License

Open Source License

Declaration

public static boolean compare(String str, List<String> list) 

Method Source Code


//package com.java2s;

import java.util.List;

public class Main {
    /** @METHOD */
    public static boolean compare(String str, List<String> list) {
        String x = str.replace(" ", "");
        x = x.replace("[", "").replace("]", "");
        String y = list.toString().replace(" ", "");
        y = y.replace("[", "").replace("]", "");
        return x.equals(y);
    }/*w  w w  . j a  v  a 2s  .co m*/
}

Related

  1. compare(List> beanList1, List> beanList2, final int[] sortKeys, final boolean[] sortAscending, final boolean nullAlwaysFirst, final int naOrder)
  2. compare(List list1, List list2)
  3. compare(List a, List b)
  4. compare(List strList1, List strList2)
  5. compare(List a, List b)
  6. compareByList(List list, T a, T b)
  7. compareFileLists(List expected, List gotten)
  8. compareIncarnations(List e1, List e2)
  9. compareList(List listA, List listB)