Find Jobs
Hire Freelancers

Write code for 2 small Java programs

$10-30 USD

Completed
Posted over 9 years ago

$10-30 USD

Paid on delivery
Problem 1 (5 points) Write a public static method called fillSpace that takes in and returns a character array. In a fit of egotism, I ask that you replace every space character (' ') in the array parameter with my name, 'B''e''n'. The returned array should not be any larger than required. Your method should not use the String class or any other helper classes. For example, when complete, the code should behave like this: char[] str = {'H','e','y',' ','y','o',u'}; [login to view URL](str); [login to view URL](fillSpace(str)); Hey you HeyBenyou Problem 2 (5 points) Write a public static method called fileAverage that takes a String that is the absolute path to a file. You may assume the file is just a simple text file with a series of real numbers like this. You will however need to handle a file related exception with a try catch. Your catch block should print out information about the exception and your method should not throw the exception. Your method should return a double that is the average of the numbers in the file.
Project ID: 7115587

About the project

3 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have large experience with java coding. Please open chat for details. I can start working right now and deliver it within hours/.
$15 USD in 1 day
5.0 (4 reviews)
1.3
1.3
3 freelancers are bidding on average $17 USD for this job
User Avatar
Hi I am a Software Engineer with more than 7 years experience of Java development. I will provide yo u the desired work with utmost of your satisfaction, looking forward to hear from you soon. Thanks.
$11 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Iowa City, United States
4.9
16
Payment method verified
Member since Sep 23, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.