Sollicitatievraag bij Dematic

Write a Java method that detects if there is duplicate character in an array.