import java.io.*;
import java.util.*;
class Fre_count
{
public static void main(String[] args) throws IOException
{
BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter a string");
String a=new String(b.readLine());
System.out.println("enter the word you want to find the count");
String c=new String(b.readLine());
StringTokenizer s=new StringTokenizer(a);
int i=s.countTokens();
int k=0,j=0;
String tok[]=new String[i];
while(s.hasMoreTokens())
{
tok[j++]=s.nextToken();
}
for(j=0;j<tok.length;j++)
{
if(c.equals(tok[j]))
k++;
}
System.out.println("frequency count of "+c+" is "+k);
}
}
New evolution of the Mouse. In 1980's round ball mouses are invented, then technology introduced Optical mouses. Now upcoming Mouse is named as Evo mouse . No more movement of your hands on placing a physical mouse, Your finger is the pointer . You can use this mouse on any Flat Surface and also it requires very little space. This mouse contains a Power button on the top, Mini USb port . It works with the help of bluetooth and input is taken by the sensor. View this Video to know the functionality of EvoMouse
Comments
Post a Comment