Couple of programs- Bubble sort and Fibonacci series.

Wanted to play with practice couple of items -

    Simple bubble sort

    public static void simpleBubbleSort() {
        int[] arr = {12, 23, 43, 34, 3, 6, 7, 1, 9, 6, 0};
        {
            int temp;
            int tempLength = arr.length;
            for (int arrlen = 0; arrlen < tempLength - 1; arrlen++) {
                System.out.println("The arrlen is" + arrlen);
                for (int temparrlen = 0; temparrlen < tempLength - 1; temparrlen++) {
                    System.out.println("The temparrlen is" + temparrlen);
                    if (arr[temparrlen] > arr[temparrlen + 1]) {
                        temp = arr[temparrlen];
                        arr[temparrlen] = arr[temparrlen + 1];
                        arr[temparrlen + 1] = temp;
                    }
                }
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }

Simple Fibonacci series iterator using tail recurssion

    public static int fibnnoaci(int term) {

        return generateFibnnoaci(term, 1, 1);

    }

    public static int generateFibnnoaci(int term, int lower, int higher) {

        if (term < 2) {

            return higher;

        }

        int results = generateFibnnoaci(term - 1, higher, higher + lower);

        return results;

    }