subject
Mathematics, 01.11.2020 05:00 izzyisawesome5232

Edhesive help pl super easy coding Write code to take a String input from the user, then print the first and last letters of the string on one line.

Sample run:

Enter a string:
surcharge
se
Hint - we saw in the lesson how to get the first letter of a string using the substring method. Think how you could use the .length() String method to find the index of the last character, and how you could use this index in the substring method to get the last character.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 17:00
The tuition costs, c, for a local community college are modeled by c(h) = 250 + 200h, where h represents the number of credit hours taken. the local state university has tuition costs, s, modeled by the function s(h) = 300 + 180h. how many credit hours will a student have to take for the two tuition costs to be equal? round the answer to the nearest tenth of an hour.
Answers: 3
question
Mathematics, 21.06.2019 18:30
Which number line represents the solution set for the inequality -1/2x> 24?
Answers: 2
question
Mathematics, 22.06.2019 02:00
15 oranges weigh 3.75 kilograms (kg). if each orange weighs approximately the same, approximately how much does each orange weigh?
Answers: 3
question
Mathematics, 22.06.2019 03:00
The seventh-grade students at charleston middle school are choosing one girl and one boy for student council. their choices for girls are michaela (m), candice (c), and raven (r), and for boys, neil (n), barney (b), and ted (t). the sample space for the combined selection is represented in the table. complete the table and the sentence beneath it.
Answers: 1
You know the right answer?
Edhesive help pl super easy coding Write code to take a String input from the user, then print the...
Questions
question
Computers and Technology, 16.11.2019 17:31
question
Social Studies, 16.11.2019 17:31
question
English, 16.11.2019 17:31
question
Mathematics, 16.11.2019 17:31
Questions on the website: 13722361