Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bostero

    Comparing two fixed list

    I have 2 fixed list and I need to compare if an element on list one it is also contained on list two. Do I have to use compareList? or equals()? this is what I have in mind if(list1==list2) return true; else return false;
  2. bostero

    invalid method declaration, return type require

    how about is I do this public class Main{ public String name(String num) { if (num == null) { return "N/A"; } int len = num.length(); int c = 0; char[] sb = new char[len]; for (int i = 0; i < len; i++) { sb[c++] = num.charAt(i); if ((len - 1 - i) % 3 ==...
  3. bostero

    invalid method declaration, return type require

    public String(String num){ if (num == null) { return "N/A"; } int len = num.length(); int c = 0; char[] sb = new char[len]; for (int i = 0; i < len; i++) { sb[c++] = num.charAt(i); if ((len - 1 - i) % 3 == 0 && i != len - 1) { sb[c++] = ','...

Part and Inventory Search

Back
Top