/* * File: FrequencyRecord.java * @author R. Morelli * * Description: Stores frequency data. * * Copyright: This program is in the public domain. You can do whatever you want with * it as long as I get credit for my work and as long as you offer your changes to me * so I can possible add them to the "official" version. */ package hcrypto.analyzer; public class FrequencyRecord { public char ch, ch2, ch3; public int count = 0; public FrequencyRecord(char ch, int count) { this.ch = ch; this.count = count; } public FrequencyRecord(char ch, char ch2, int count) { this.ch = ch; this.ch2 = ch2; this.count = count; } public FrequencyRecord(char ch, char ch2, char ch3, int count) { this.ch = ch; this.ch2= ch2; this.ch3=ch3; this.count = count; } /** * The copy constructor */ public FrequencyRecord(FrequencyRecord freq) { this.ch = freq.ch; this.count = freq.count; } }