Find Jobs
Hire Freelancers

Write some Java Software

€30-250 EUR

进行中
已发布超过 7 年前

€30-250 EUR

货到付款
The objective of this program will be to write to and read from a text file. There will be two classes developed – “ReadWrite” and “InvalidFileTypeException”. ReadWrite Class o This class will handle the process of writing text to a file and reading from this text file. It will have two fields named “file” and “text”. o There should be one constructor and three methods in this class named “write”, "writeToFile" and “read” - Constructor: o The constructor will request two String parameters 1. file (file to be written to) and 2. text (text to be written). - “write” method: (private) o This method should write some text to the file specified in the constructor. o The method should ensure that the file to be written to ends with the file extension - ".txt". If not, an "InvalidFileException" should be thrown. o This method should claim (throw) two types of checked Exceptions. - "writeToFile" method: o This method should return "true" if the text is written successfully and "false" if not. o This method should invoke the "write" method. o This method should catch at least two exceptions  The exceptions should give the user a specific message about what happened along with printing the stack trace to the console window. - "read" method: o This method will involve reading text from the text file. o It will take one parameter - "fileToRead" - the name of the file to be read. o You should output the text from this file to the console window. o Ensure to incorporate Exception handling into this method also.  If the file is not found - the exception object generated should return the following message i.e. " filename (The system cannot find the file specified)"  If there's an I/O error - the relevant exception should be caught. InvalidFileException Class o You should develop a class named “InvalidFileException” class. o This class should define a "Checked Exception". o This exception should be implemented in the "ReadWrite" class. o This class should contain a "toString" method which when called, will state : Sorry, but this program only supports "text" files.
项目 ID: 12149561

关于此项目

4提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
4威客以平均价€159 EUR来参与此工作竞价
用户头像
hello,how are you.i read your bid carefully. i can complete your project fully and can give you good result. your project is to develop console app reading/exception with text file. i am java/javafx expert and have full experience for 12 years. java/javafx is my top skill and passision. i can provide most quality and high speed. if you want to success, please contact me. Then, I will give you good result. hire me.
€155 EUR 在3天之内
4.8 (34条评论)
6.1
6.1
用户头像
Hello Sir, Being a software expert I can complete your project in time and in an efficient manner. I have around 3 years of experience in Java,C#, ASP.NET. Come to chat for details. Regards, Sibghat
€200 EUR 在2天之内
4.9 (17条评论)
4.6
4.6

关于客户

IRELAND的国旗
Ireland
5.0
1
付款方式已验证
会员自11月 21, 2016起

客户认证

这个客户的其他工作

Get Data Entry Done
€250-750 EUR
谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。