Click here to Skip to main content
16,013,642 members

Comments by Pakh (Top 7 by date)

Pakh 7-Dec-12 14:48pm View    
your wellcome
Pakh 7-Dec-12 11:25am View    
Deleted
No there is no need for break
Pakh 7-Dec-12 10:55am View    
Deleted
No there is no need for "break"
when you use "return" it returns the value then it goes to where you called your method
Pakh 7-Dec-12 10:51am View    
No there is no need for break
when you use return it will return the value then it will end the method
(for example if you have two arrays of 100 and i=0,j=0,arr1[i]>arr2[j] then it will return true and the method will end there)

For more details you can look for (in any book about java) break,continue,return,break Label,etc
Pakh 7-Dec-12 8:41am View    
No, in my code it returns false right away when *arr1[i]>arr2[j]* happens.
about the second part I don't understand what you are saying,( your arrays can have hundereds of elements)