All pastes #390462 Raw Edit

Stuff

public java v1 · immutable
·published 2007-03-11 13:49 UTC
rendered paste body
package mainSys;public class Decryptor {		private int gRight = 0; 	public double tPercent;		public void Decrypt(String guessStr, String realStr)	{				for(int i = 0; i < realStr.length(); i++)		{			char a = realStr.charAt(i);			char b = guessStr.charAt(i);			if(a == b)			{				gRight++;			}		}		tPercent = realStr.length() / 100;		tPercent = tPercent * gRight;			}		public double getPercent()	{		return tPercent;	}}