Browse files

Fixed typo in CharacterAlreadyPutException

  • Loading branch information...
1 parent 5b769ac commit 5bc56e9c25fa13159d8d1e2b03f5768716700b65 @D4n13le committed Jan 22, 2012
View
2 ...an/logic/CharacterAlreadyPutExcetion.java → ...n/logic/CharacterAlreadyPutException.java
@@ -1,5 +1,5 @@
package org.ina.hangman.logic;
-public class CharacterAlreadyPutExcetion extends RuntimeException {
+public class CharacterAlreadyPutException extends RuntimeException {
private static final long serialVersionUID = -3887054721293508505L;
}
View
2 Hangman/src/org/ina/hangman/logic/Word.java
@@ -20,7 +20,7 @@ public Word(String word) {
public boolean guess(char c) {
//se la lettera è già stata detta, eccezione!
if (_said.contains(c))
- throw new CharacterAlreadyPutExcetion();
+ throw new CharacterAlreadyPutException();
//altrimenti, aggiungiamo alle lettere dette
_said.add(c);
//controlliamo se c'è

0 comments on commit 5bc56e9

Please sign in to comment.