Hi I have problem with run this JAVA file import java.io.*; public class DataPresenter { public static void main...

70.2K

Verified Solution

Question

Programming

Hi

I have problem with run this JAVA file

import java.io.*;
public class DataPresenter {
public static void main (String args []) {
System.out.println(\"File:../SmallAreaIncomePovertyEstData.text\");
System.out.println(\"Id\" + \"\t\" + \"Population\" + \"\t\" +\"ChildPop\"
+ \"\t\" + \"CPovPop\" + \"\t\" + \"CPovPop%\");
}// read the data

try (FileReader fr = new FileReader(\"File:C:\\605.201/SmallAreaIncomePovertyEstData.text\"))
{
int c;
while (( c = fr.read())!= -1){
System.out.print((char) c);
}
}
catch(IOException e) {
System.out.println(\"I/O Error\" + e);
}   
}

Please help to fix

Answer & Explanation Solved by verified expert
3.6 Ratings (655 Votes)
Please let me know if anything is requiredCopyable code import javaiopublic class DataPresenter public static void main String args SystemoutprintlnFileSmallAreaIncomePovertyEstDatatextSystemoutprintlnId t Population t    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students