Search:

Type: Posts; User: Aberforth

Search: Search took 0.12 seconds.

  1. Re: Finding frequency and probability of characters in a string

    i am using double because probability will have a decimal part.
    but when i am going to find the frequency , the decimal part should be entirely zero.
    for example, the string be: aaaabbbbbbbbbbbccc...
  2. Re: Finding frequency and probability of characters in a string

    actually the frequency should be an integer i.e,9.0000000000 and not 9.0000000006.
  3. Finding frequency and probability of characters in a string

    ***Problem****In this program if the frequency is large (say, 9) the frequency shows it as 9.000000000006.

    import java.io.*;

    public class Freq {

    public static void main(String[] args)
    ...
Results 1 to 3 of 3