Java API

This lab is for practicing Java - you have to find descriptions of the following classes and solve a set of small problems.

java.lang.String
java.lang.StringBuffer/StringBuilder
java.lang.Character

java.lang.Integer (-> Double, ...)
java.lang.Math
java.lang.Comparable

java.util.StringTokenizer
java.util.Calendar

java.util.Random
java.util.ArrayList

java.util.HashMap

java.util.Set
java.util.List
java.util.Collection
java.util.TreeSet
java.util.Arrays
java.util.Iterator

...
 

Problems

public static <T extends Object> void reverseList (List<T> list)
      throws UnsupportedOperationException

Output the result and check that it is correct.
static public <T extends Object & Comparable<? super T>> T maximum (Collection<? extends T> a)
         throws NoSuchElementException

You have to upload your full solution to Moodle !

Git repository address: https://jpoial@bitbucket.org/i231/lab1.git


Oskused, mis tuleks praktikumide käigus omandada:

Ülesanded:

Koostage peameetod (main), mis sisaldaks lahendust järgmistele probleemidele:
Programm testida ja esitada Moodle kaudu.

Git repositoorium: https://jpoial@bitbucket.org/i231/lab1.git



Jaanus Pöial