Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.28 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public static boolean ehParteDe( int[] parte, int[] todo ){
  2.                 for(int i = 0; i<todo.length; i++){
  3.                         if(todo[i]==parte[0]){
  4.                                 for(int j = 1; j<parte.length;j++){
  5.                                         if(parte[j]!=todo[i+1]){
  6.                                                 return false;
  7.                                         }else {
  8.                                                 i++;;
  9.                                         }
  10.                                 }
  11.                         }
  12.                 }
  13.                 return true;
  14.         }