Find Jobs
Hire Freelancers

Small Java homework for school -- 2

$10 USD

Cancelled
Posted over 7 years ago

$10 USD

Paid on delivery
Write a program that has the main method and another method called parseString. The parseString method: • is public • is static • does not return a value • has one parameter of type String • takes the individual characters in the String passed as an argument, capitalizes them and separates them by a hyphen • it then prints the resulting string to the output console For example, if the method was called from the main method passing the string “hello”, it should print to the output console the string: “H-E-L-L-O”. To test the parseString method, you may call it multiple times from the main method passing different strings. The following is the header for the method: public static void parseString(String str) { // provide your implementation here } Hints: My solution involved writing a for loop to get the individual characters in the String argument. I also used the length, charAt and toUpperCase methods of the String class; as well as the toString method in the Character class to convert a char value to a String value. You, of course, don’t have to use the same solution I did, but make sure that your method works correctly regardless of the string that is passed as an argument.
Project ID: 11805408

About the project

7 proposals
Remote project
Active 8 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
7 freelancers are bidding on average $20 USD for this job
User Avatar
JAVA Expert here , Can do your project in 15 minutes..............................................................................................
$15 USD in 1 day
4.5 (60 reviews)
5.2
5.2
User Avatar
i'm an experienced JAVA developer with solid background of JAVA SE/EE, Multi-threading, Swing and API integrations. you'll get your job done perfectly. have a look on my reviews and portfolio
$10 USD in 1 day
4.9 (16 reviews)
4.0
4.0
User Avatar
Hi there! I have read what you exactly need, however I would like to ask you a few questions. I wouldn't call myself a master but I do work smart and do not rest until I get the job done. Please feel free to ping me anytime so we can have a detailed discussion.
$66 USD in 1 day
5.0 (1 review)
3.2
3.2
User Avatar
i can implement your method in 30 minutes. Knock me ...........................................................
$15 USD in 0 day
4.5 (11 reviews)
2.5
2.5

About the client

Flag of UNITED STATES
Miami, United States
5.0
13
Payment method verified
Member since Nov 11, 2013

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.