Find Jobs
Hire Freelancers

Small Java homework for school -- 2

$10 USD

已取消
已发布超过 7 年前

$10 USD

货到付款
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.
项目 ID: 11805408

关于此项目

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

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
7威客以平均价$20 USD来参与此工作竞价
用户头像
JAVA Expert here , Can do your project in 15 minutes..............................................................................................
$15 USD 在1天之内
4.5 (60条评论)
5.2
5.2
用户头像
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 在1天之内
4.9 (16条评论)
4.0
4.0
用户头像
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 在1天之内
5.0 (1条评论)
3.2
3.2
用户头像
i can implement your method in 30 minutes. Knock me ...........................................................
$15 USD 在0天之内
4.5 (11条评论)
2.5
2.5

关于客户

UNITED STATES的国旗
Miami, United States
5.0
13
付款方式已验证
会员自11月 11, 2013起

客户认证

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