Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean ehParteDe( int[] parte, int[] todo ){
- for(int i = 0; i<todo.length; i++){
- if(todo[i]==parte[0]){
- for(int j = 1; j<parte.length;j++){
- if(parte[j]!=todo[i+1]){
- return false;
- }else {
- i++;;
- }
- }
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment