Temukan Kata Urutan Surat Ganda di Java

System.out.print("Double Letter Sequence Words are: ");
for(int i = 0; i < words.length; i++) {
	String temp = words[i];
	for(int j = 0; j < temp.length() - 1; j++) {
		if(temp.charAt(j) == temp.charAt(j + 1))
			System.out.print(temp + " ");
	}
}
Uptight Unicorn