This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Task2; | |
/** | |
* Created by Johan on 2015-03-11. | |
*/ | |
public class QueArr<T> { | |
private T[] arr; | |
private int first; | |
private int last; | |
private int length = 8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void getWords(){ | |
String str = ""; | |
String del = "[;.,:'!?()\"+=*]"; | |
n.useDelimiter(del); | |
while(n.hasNext()){ | |
str += n.next(); | |
} | |
str = str.replace('-', ' '); // because of people like Al Jazari | |
str = str.replaceAll("[0-9]",""); | |
System.out.println(file.getPath()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |