| CCS 2100 | | Comp 310 | | CCS 1300 | | CCS 1200 | | CCS 1100 | | CCS 1000 | | CS 212 | | Email: cpuccs@yahoo.com
Showing posts with label list. Show all posts
Showing posts with label list. Show all posts

Monday, January 14, 2013

Linked Lists Example

The following is the link for the complete sample program of an integer list that use Link lists data structure. (Note: click the smaller download link, not the big one in the ads):

Linked Lists
http://www.2shared.com/file/wXvYA1aw/Linked.html

The file is in ZIP format. Simply extract it to access the codes.

Or you may encode the following 5 java classes:

---------------------------------TestProg_Linked.java-----------------------

import java.io.*;
import java.util.*;

public class TestProg_Linked
{
    static BufferedReader keyboard = new
           BufferedReader(new InputStreamReader(System.in));

Wednesday, January 9, 2013

Array-Based Lists Example

The following is the link for the complete sample program of an integer list that use array-based data structure. (Note: click the smaller download link, not the big one in the ads):

Array-Based List
URL: http://www.2shared.com/file/pA8UVyql/1_-_Array_Based.html

The file is in ZIP format. Simply extract it to access the codes.

Or you may encode the following 5 java classes:

------------------------TestProg_Array.java------------------------

//Test Program Integer Array List
import java.io.*;
import java.util.*;

public class TestProg_Array
{
    static BufferedReader keyboard = new
           BufferedReader(new InputStreamReader(System.in));

    public static void main(String[] args) throws IOException
    {
        UnorderedArrayList intList = new UnorderedArrayList(50);
        IntElement num = new IntElement();

Sunday, July 22, 2012

Address Book using Array-Based Lists

The following is a program that would act as an Address Book using Array-Based Lists:

http://www.2shared.com/file/u6X0pBTZ/AddressBook.html

NOTE: Copy Ch3_Ex8Data.txt in the Drive C:.

Abstract Functions in ArrayClassList

Here is the link for a program that shows how to tap the abstract functions of the ArrayListClass:

http://www.2shared.com/file/-0Si-vsF/Abstract_Func.html

Sunday, July 15, 2012

Array-Based Lists (Chapter 3)

Array-Based Lists
http://www.2shared.com/file/EBAxGx23/ArrayBasedList.html

This program would ask the user for 8 integers. Then, it will ask a position to be deleted and display the smallest number.