ces06546's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
4 (0.01 per day)
Joined:
30-November 11
Profile Views:
31
Last Active:
User is offline Apr 25 2012 02:14 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   ces06546 has not set their status

Posts I've Made

  1. In Topic: Simple hangman code, won't compile

    Posted 25 Apr 2012

    View PostGregBrannon, on 25 April 2012 - 01:35 PM, said:

    Are you getting compiler errors? If you are, post them. If not, please add a few words to describe what is happening or not happening.

    hw7.java:54: illegal start of expression, not a statment, ';' expectd
    58: illegal start of type, ,identifier> expected, ';' expected
    it gives me 83 errors
  2. In Topic: Storing information from a tree in a list

    Posted 30 Nov 2011

    import java.text.DecimalFormat;
    
    public class LetterFreq implements Comparable<LetterFreq>
    {
      private String letter;
      private int freq;
    
      DecimalFormat fmt = new DecimalFormat("00000");
    
    
      public LetterFreq(String newLetter)
      {
        letter = newLetter;
        freq = 0;
       }
    
      public void inc()
      {
        freq++;
      }
    
      public int compareTo(LetterFreq other)
      {
        return this.letter.compareTo(other.letter); 
      }
    
      public String toString()
      {
        return(fmt.format(freq) + " " + letter);
      }
    
      public String letterIs()
      {
        return letter;
      }
    
      public int freqIs()
      {
        return freq;
      }
    }
    
    

My Information

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

Contact Information

E-mail:
Private

Friends

ces06546 hasn't added any friends yet.

Comments

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