no you can search any words you want. The words can be typed into the prompt box when you run the code. The scanner is used to create this.
Type: Posts; User: sc23
no you can search any words you want. The words can be typed into the prompt box when you run the code. The scanner is used to create this.
i posted the assignment above. I would ask more specific questions but I am so confused I really don't even know what to ask. We are pulling from files for example (Document.txt) and the program is...
read the line of words. Then go through each word...? IDK AH :(
you would need to scan the other document to search for the words you are looking for
how would you check that?
Yes the code reads in the words that I type in the Java prompt to box.
Yes, it is supposed to use text files then count the words you enter in that file. But when I enter which words to count it doesn't work. I don't know exactly which part of my code if wrong for this...
I am working on the last code that I posted. I am trying to read in a handful of words on one line. Then every time you read in a new line form a file I want to check if any of the words you're...
For this assignment you are to write a program that handles text files. The assignment requires three classes (plus library classes); we've given you two - FreqStudy, the driver, and another class,...
import java.util.Scanner;
public class LetterDriver{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String tScan= " ";
while(tScan.length() > 0){...
import java.util.Scanner;
public class LetterDriver{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String tScan= " ";
while(tScan.length() > 0){
tScan =...
I have this for my driver class... But I don't know what to put so that it will print out the number count...I have made is so that there is a 2 line input
import java.util.Scanner;
public...
I don't understand how to change this at all. I understand that I shouldn't have printResults function because it is simply not doing anything but I don't get how to change it. Sorry so new to...
public class LetterProfile
{
int scoreboard[] = new int [26];
private int index;
private int next;
private int largest =0;
private int largestindex =0;
public void countChars...
I am in the same situation and need help with the same problem. What you have for code is everything I have had since last week and it still prints "25" Ive tried fixing it many times and nothing had...