Find Jobs
Hire Freelancers

Small Java homework for school

$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.
Ταυτότητα εργασίας: 11445944

Σχετικά με την εργασία

5 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 8 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
Βραβεύτηκε στον/στην:
Avatar Χρήστη
Hello, i am expert in java/c/c++ and i can deliver any task in least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments. Pm me for further details. Thank You!
$10 USD σε 1 ημέρα
5,0 (81 αξιολογήσεις)
5,3
5,3
5 freelancers δίνουν μια μέση προσφορά $13 USD για αυτή τη δουλειά
Avatar Χρήστη
A proposal has not yet been provided
$20 USD σε 1 ημέρα
4,9 (88 αξιολογήσεις)
6,5
6,5
Avatar Χρήστη
I ll complete the work for the lowest price and in no time.
$10 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Miami, United States
5,0
15
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Νοε 11, 2013

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.