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 14:30
Is fgh ~ jkl? if so, identify the similarity postulate or theorem that applies.
Answers: 1
question
Mathematics, 21.06.2019 16:00
Find x to the nearest hundredth place
Answers: 2
question
Mathematics, 21.06.2019 16:00
Plzzz i beg u so much asaaaap ! what is the slope of this line? enter your answer in the box.
Answers: 1
question
Mathematics, 21.06.2019 20:00
Adam used 1072.4 gallons of water over the course of 7 days. how much water did adam use, on average, each day?
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
Mathematics, 02.09.2020 20:01
question
English, 02.09.2020 20:01
question
English, 02.09.2020 20:01
question
Mathematics, 02.09.2020 20:01
question
Mathematics, 02.09.2020 20:01
Questions on the website: 13722367