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
Isee the amount was $90.00 then reduced to $75.00 , what is the percent ?
Answers: 1
question
Mathematics, 21.06.2019 18:00
The ratio of wooden bats to metal bats in the baseball coach’s bag is 2 to 1. if there are 20 wooden bats, how many metal bats are in the bag?
Answers: 1
question
Mathematics, 21.06.2019 21:30
Cal's go cart has a gas tank with the dimensions shown below. he uses a gas can that holds 11 gallon of gas, to fill the go cart tank. 11 gallon = 231 inches^3 how many full gas cans will it take to fill the go cart's gas tank?
Answers: 3
question
Mathematics, 22.06.2019 00:20
Nthe opening scene of the movie raiders of the lost ark, indiana jones replaces a golden statue with a bag of sand. the platform on which the statue is placed is designed to detect the mass of the statue. if the bag of sand has a different mass than the statue, then a mechanism triggers and destruction ensues. the density of gold is about 20\text{ g/cm}^320 g/cm 3 20, space, g, slash, c, m, start superscript, 3, end superscript. the density of sand can be estimated at 2.5\text{ g/cm}^32.5 g/cm 3 2, point, 5, space, g, slash, c, m, start superscript, 3, end superscript. the gold statue can be modeled as a cylinder with height 25\text{ cm}25 cm25, space, c, m and radius 8\text{ cm}8 cm8, space, c, m. in terms of \piπpi, what is the mass of sand indiana jones needs to avoid triggering the mechanism?
Answers: 2
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, 16.11.2020 19:30
Questions on the website: 13722362