ICSFailure's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
12 (0.02 per day)
Joined:
27-September 12
Profile Views:
219
Last Active:
User is offline Dec 01 2012 09:07 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   ICSFailure has not set their status

Posts I've Made

  1. In Topic: Error: cannot find symbol

    Posted 29 Nov 2012

    Okay but I am getting the cannot find symbol for every instance of 'Pair' and 'BinaryTree' as the program is saying they don't exist?

    Huffman.java:71: error: cannot find symbol
    	public static Pair findSmallest(int[] table) {
    	              ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:96: error: cannot find symbol
    	public static Queue<BinaryTree<Pair>> buildQueue(int[] table) {
    	                    ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:96: error: cannot find symbol
    	public static Queue<BinaryTree<Pair>> buildQueue(int[] table) {
    	                               ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:111: error: cannot find symbol
    	public static BinaryTree<Pair> createTree(Queue<BinaryTree<Pair>> S, Queue<BinaryTree<Pair>> T) {
    	                                                ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:111: error: cannot find symbol
    	public static BinaryTree<Pair> createTree(Queue<BinaryTree<Pair>> S, Queue<BinaryTree<Pair>> T) {
    	                                                           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:111: error: cannot find symbol
    	public static BinaryTree<Pair> createTree(Queue<BinaryTree<Pair>> S, Queue<BinaryTree<Pair>> T) {
    	                                                                           ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:111: error: cannot find symbol
    	public static BinaryTree<Pair> createTree(Queue<BinaryTree<Pair>> S, Queue<BinaryTree<Pair>> T) {
    	                                                                                      ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:111: error: cannot find symbol
    	public static BinaryTree<Pair> createTree(Queue<BinaryTree<Pair>> S, Queue<BinaryTree<Pair>> T) {
    	              ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:111: error: cannot find symbol
    	public static BinaryTree<Pair> createTree(Queue<BinaryTree<Pair>> S, Queue<BinaryTree<Pair>> T) {
    	                         ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:135: error: cannot find symbol
    	public static void findEncoding(BinaryTree<Pair> t, String[] a, String prefix) {
    	                                ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:135: error: cannot find symbol
    	public static void findEncoding(BinaryTree<Pair> t, String[] a, String prefix) {
    	                                           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:145: error: cannot find symbol
    	public static String[] findEncoding(BinaryTree<Pair> t) {
    	                                    ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:145: error: cannot find symbol
    	public static String[] findEncoding(BinaryTree<Pair> t) {
    	                                               ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:48: error: cannot find symbol
    		Queue<BinaryTree<Pair>> S = buildQueue(freqTable);
    		      ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:48: error: cannot find symbol
    		Queue<BinaryTree<Pair>> S = buildQueue(freqTable);
    		                 ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:50: error: cannot find symbol
    		Queue<BinaryTree<Pair>> T = new Queue<BinaryTree<Pair>>();
    		      ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:50: error: cannot find symbol
    		Queue<BinaryTree<Pair>> T = new Queue<BinaryTree<Pair>>();
    		                 ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:50: error: cannot find symbol
    		Queue<BinaryTree<Pair>> T = new Queue<BinaryTree<Pair>>();
    		                                      ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:50: error: cannot find symbol
    		Queue<BinaryTree<Pair>> T = new Queue<BinaryTree<Pair>>();
    		                                                 ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:50: error: Queue is abstract; cannot be instantiated
    		Queue<BinaryTree<Pair>> T = new Queue<BinaryTree<Pair>>();
    		                            ^
    Huffman.java:52: error: cannot find symbol
    		BinaryTree<Pair> huffmanTree = createTree(S, T);
    		^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:52: error: cannot find symbol
    		BinaryTree<Pair> huffmanTree = createTree(S, T);
    		           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:87: error: cannot find symbol
    		Pair result = new Pair(current, smallest);
    		^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:87: error: cannot find symbol
    		Pair result = new Pair(current, smallest);
    		                  ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:97: error: cannot find symbol
    		Queue <BinaryTree<Pair>> q = new Queue<BinaryTree<Pair>>();
    		       ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:97: error: cannot find symbol
    		Queue <BinaryTree<Pair>> q = new Queue<BinaryTree<Pair>>();
    		                  ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:97: error: cannot find symbol
    		Queue <BinaryTree<Pair>> q = new Queue<BinaryTree<Pair>>();
    		                                       ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:97: error: cannot find symbol
    		Queue <BinaryTree<Pair>> q = new Queue<BinaryTree<Pair>>();
    		                                                  ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:97: error: Queue is abstract; cannot be instantiated
    		Queue <BinaryTree<Pair>> q = new Queue<BinaryTree<Pair>>();
    		                             ^
    Huffman.java:102: error: cannot find symbol
    			Pair temp = findSmallest(table);
    			^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:103: error: cannot find symbol
    			BinaryTree<Pair> current = new BinaryTree<Pair>();
    			^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:103: error: cannot find symbol
    			BinaryTree<Pair> current = new BinaryTree<Pair>();
    			           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:103: error: cannot find symbol
    			BinaryTree<Pair> current = new BinaryTree<Pair>();
    			                               ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:103: error: cannot find symbol
    			BinaryTree<Pair> current = new BinaryTree<Pair>();
    			                                          ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:112: error: cannot find symbol
    		BinaryTree<Pair> resultTree = new BinaryTree<Pair>();
    		^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:112: error: cannot find symbol
    		BinaryTree<Pair> resultTree = new BinaryTree<Pair>();
    		           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:112: error: cannot find symbol
    		BinaryTree<Pair> resultTree = new BinaryTree<Pair>();
    		                                  ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:112: error: cannot find symbol
    		BinaryTree<Pair> resultTree = new BinaryTree<Pair>();
    		                                             ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:115: error: cannot find symbol
    		BinaryTree<Pair> temp1 = new BinaryTree<Pair>();
    		^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:115: error: cannot find symbol
    		BinaryTree<Pair> temp1 = new BinaryTree<Pair>();
    		           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:115: error: cannot find symbol
    		BinaryTree<Pair> temp1 = new BinaryTree<Pair>();
    		                             ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:115: error: cannot find symbol
    		BinaryTree<Pair> temp1 = new BinaryTree<Pair>();
    		                                        ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:116: error: cannot find symbol
    		BinaryTree<Pair> temp2 = new BinaryTree<Pair>();
    		^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:116: error: cannot find symbol
    		BinaryTree<Pair> temp2 = new BinaryTree<Pair>();
    		           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:116: error: cannot find symbol
    		BinaryTree<Pair> temp2 = new BinaryTree<Pair>();
    		                             ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:116: error: cannot find symbol
    		BinaryTree<Pair> temp2 = new BinaryTree<Pair>();
    		                                        ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:117: error: cannot find symbol
    		BinaryTree<Pair> root = new BinaryTree<Pair>();
    		^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:117: error: cannot find symbol
    		BinaryTree<Pair> root = new BinaryTree<Pair>();
    		           ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:117: error: cannot find symbol
    		BinaryTree<Pair> root = new BinaryTree<Pair>();
    		                            ^
      symbol:   class BinaryTree
      location: class Huffman
    Huffman.java:117: error: cannot find symbol
    		BinaryTree<Pair> root = new BinaryTree<Pair>();
    		                                       ^
      symbol:   class Pair
      location: class Huffman
    Huffman.java:122: error: cannot find symbol
    			root.setData(new Pair(dummy, temp1.getData().getFreq() + temp2.getData().getFreq()));
    			                 ^
      symbol:   class Pair
      location: class Huffman
    51 errors
    
    


    There ya go. 51 errors all having to do with the same thing.
  2. In Topic: LinkedList Iterator Issue

    Posted 25 Oct 2012

    Well I got the easier methods....hasNext and hasPrevious

    but really having issues with remove right now.
  3. In Topic: LinkedList Iterator Issue

    Posted 24 Oct 2012

    Looking for any assistance I can get.
  4. In Topic: LinkedList Iterator Issue

    Posted 24 Oct 2012

    Anyone...?

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

ICSFailure hasn't added any friends yet.

Comments

ICSFailure has no profile comments yet. Why not say hello?