
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
java 1 eclips pls fix code for don't know where i made the miskate
![echipse-workspace Projectone/mine.java
- Eclipse IDE
File Edit Source Refactor Navigate Search Project Run Window Help
*
▼ 2
↓
mine.java X
▸ Projectone (default package) ▸ FileStats▸ main(String[]): void
le import java.io. BufferedReader;
2 import java.io.File;
3 import java.io.FileInputStream;
4 import java.io.InputStreamReader;
5 import java.util.Scanner;
6
7 public class FileStats
8 {
90 public static void main(String[] args) throws Exception
10
{
11
Scanner sc = new Scanner (System.in);
12
System.out.println("Enter filename: ");
13
String name=sc.next();
14
15
File file = new File (name);
16
FileInputStream fileStream = new FileInputStream (file);
17
InputStreamReader input = new InputStreamReader (fileStream);
BufferedReader reader = new BufferedReader (input);
18
19
20
String line;
21
22
// Initializing counters
23
int countWord = 0;
24
int lineCount=0;
25
int charCount=0;
26
27
// Reading line by line from the
28
// file until a null is returned
29
while ((line = reader.readLine()) != null)
30
{
Problems @ Javadoc Declaration Console X
terminated> mine (3) [Java Application] C:\Program Files\Java\jdk-18.0.1\bin\javaw.exe (May 1, 2022, 12:26:35 PM – 12:26:35 PM) [pid: 75420]
Error: Could not find or load main class mine
Caused by: java.lang.ClassNotFoundException: mine
C
+
P
X
KAN!](https://content.bartleby.com/qna-images/question/47d7a0f8-4e66-40ed-ae66-faa7d8f664d3/bff7e736-b2f4-41e0-96cd-97e493b23c0d/w29vq7w_thumbnail.png)
Transcribed Image Text:echipse-workspace Projectone/mine.java
- Eclipse IDE
File Edit Source Refactor Navigate Search Project Run Window Help
*
▼ 2
↓
mine.java X
▸ Projectone (default package) ▸ FileStats▸ main(String[]): void
le import java.io. BufferedReader;
2 import java.io.File;
3 import java.io.FileInputStream;
4 import java.io.InputStreamReader;
5 import java.util.Scanner;
6
7 public class FileStats
8 {
90 public static void main(String[] args) throws Exception
10
{
11
Scanner sc = new Scanner (System.in);
12
System.out.println("Enter filename: ");
13
String name=sc.next();
14
15
File file = new File (name);
16
FileInputStream fileStream = new FileInputStream (file);
17
InputStreamReader input = new InputStreamReader (fileStream);
BufferedReader reader = new BufferedReader (input);
18
19
20
String line;
21
22
// Initializing counters
23
int countWord = 0;
24
int lineCount=0;
25
int charCount=0;
26
27
// Reading line by line from the
28
// file until a null is returned
29
while ((line = reader.readLine()) != null)
30
{
Problems @ Javadoc Declaration Console X
terminated> mine (3) [Java Application] C:\Program Files\Java\jdk-18.0.1\bin\javaw.exe (May 1, 2022, 12:26:35 PM – 12:26:35 PM) [pid: 75420]
Error: Could not find or load main class mine
Caused by: java.lang.ClassNotFoundException: mine
C
+
P
X
KAN!
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- Is there any benefit to a programmer who already knows a number of programming languages from being able to learn more?arrow_forwardWhat precisely does it mean to adhere to code conventions? Look at how the Java programming language implements coding norms.arrow_forwardThe following characteristics apply to the Java programming language, EXCEPT: It was originally designed for programming consumer devices. It was designed to securely execute programs in a browser. It is portable enough to work with different processor types and operating systems. It was designed to make it easy for beginners to write simple programs.arrow_forward
- When applied to computer programming, is there any significance to the phrase "debugging"?arrow_forwardWhen applied to the context of computer programming, does the word "debugging" have any significance at all?arrow_forwardFor instance, PASCAL is a computer language that uses pseudo-code.arrow_forward
- What precisely does it mean to adhere to code conventions? Look at how the Java programming language implements coding norms.arrow_forwardJAVA PROGRAM ASAP ************* THE PROGRAM MUST WORK IN HYPERGRADE AND PASS ALL THE TEST CASES.**************** Chapter 16. PC #5. Palindrome Detector (page 1073) A palindrome is any word, phrase, or sentence that reads the same forward and backward. Here are some well-known palindromes: Able was I, ere I saw Elba A man, a plan, a canal, Panama Desserts, I stressed Kayak Write a boolean method that uses recursion to determine whether a String argument is a palindrome. The method should return true if the argument reads the same forward and backward. Demonstrate the method in a program. The program should ask the user to enter a string, which is checked for palindrome property. The program displays whether the given input is a palindrome or not, then prompts the user to enter another string. If the user enters QUIT (case insensitive, then exit the program). Test Case 1 Please enter a string to test for palindrome or type QUIT to exit:\nDesserts, I…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY