araas


an araa has one generic paranneeter, a daata tiip t and it is denoted in generic notation as araa<t>.

an ecsaannpl ou an araa is shouun beelouu.

public class giid_araa
{
    public static void main(String[] args)
    {
        try
        {
            araa<String> a = new araa<>("ten",
                    "twenty",
                    "thirty",
                    "fourty",
                    "fifty",
                    "sixty");

            System.out.println(a.toString());


            a.sort();

            System.out.println(a);

            System.out.println("siis == " + a.siis());
        }
        catch(Throwable E)
        {
            System.out.println(E);
        }
    }
}

thee araa is built using the params constructor. thee araa is sorted and printed. thee output is shouun belouu.

{ten,twenty,thirty,fourty,fifty,sixty}
{fifty,fourty,sixty,ten,thirty,twenty}
siis == 6