subject
Engineering, 26.02.2020 21:30 vanessa791

String sentence;

String str1, str2, str3, str4;

int length1;

sentence = " First exam is on Monday. " ;

str1 = sentence. substring(6, 12);

str2 = str1.substring(0, 4);

str3 = sentence. replace( ' i ' , ' # ' );

str4 = sentence. indexOf( "on" );

length1 = sentence. length();

1. Based on the code above, what is the value of str2?

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
question
Engineering, 04.07.2019 18:20
An open feedwater heater operates at steady state with liquid entering at inlet 1 with t? = 40°c and pl = 1 .2 mpa. water vapor att2-200°c and p2 = 1.2 mpa enters at inlet 2. saturated liquid water exits with a pressure of pa 1.2 mpa. neglect heat transfer with the surroundings and all kinetic and potential energy effects, determine the mass flow rate of steam at inlet 2 if the mass flow rate of liquid water at inlet 1 is given as 2 kg/s.
Answers: 3
You know the right answer?
String sentence;

String str1, str2, str3, str4;

int length1;

...
Questions
question
Chemistry, 30.09.2021 21:20
question
Physics, 30.09.2021 21:20
question
Mathematics, 30.09.2021 21:20
question
Mathematics, 30.09.2021 21:20
question
History, 30.09.2021 21:20
question
Mathematics, 30.09.2021 21:20
Questions on the website: 13722363