Test for end of Hillel Java Core curse
1. Write a program to find all distinct words from a text file. Ignore chars like ".,/-;:" and Ignore case sensitivity.
2. Write a generic method that takes an array of objects and a collection, and puts all objects in the array into the collection.
3. Given the following class:
public class IncrementSynchronize {
private int value = 0;
//getNextValue()
}
Write three different method options for getNextValue() that will return 'value++', each method needs to be synchronized in a different way.