1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sweet-ann [11.9K]
3 years ago
7

*please help*

Advanced Placement (AP)
1 answer:
Minchanka [31]3 years ago
6 0
Answer:
1. Prints “o”
This is because charAt returns with the character(a,b,c,etc) at the index. In this case it’s 4. It’s important to remember that the charAt searches for the character at the index and not literal place. The string starts at 0 instead of 1. So h = 0, e = 1, l = 2, l = 3, o = 4.
2. Prints “5”
The str.length() method prints out the literal count of characters in a string. Starting from 1 instead of 0. “hello” has 5 characters(the word letters can’t be used as the method also counts spaces and other symbols).
3. Prints “he”
The substring method prints out the characters from the first index parameter, in this case “h” since it’s in the 0 index, to the last character before the last index parameter. This would be “e”. If it were a longer length then those letters in between would be printed as well.
You might be interested in
1.Explain what you think this quote means?
kotegsom [21]

Answer:

Happyness is key

Explanation:

I think it means that if you do something you like, you will accualy enjoy doing it, making it not seem like work, but fun.

6 0
3 years ago
Read 2 more answers
The birth of stars occurs in a nebula or cloud of gas and dust in space, these are often formed fro the death of large stars. Wh
Jobisdone [24]
Gravity and Heat

"...star formation begins when part of the interstellar medium--one of the cold, dark clouds... starts to collapse under its own weight. The cloud fragment heats up as it shrinks, and eventually its center becomes hot enough for nuclear burning to begin. At that point, the contraction stops, and a star is born."
8 0
3 years ago
What would be the best question to ask if you wanted to learn more about someone's job? How much did your last car cost? What's
frosja888 [35]

Answer:

I think how much did your last car cost is the best question

Explanation:

because by asking that you can know how did that person buy that car and where did they get the money to afford it

5 0
3 years ago
What is the purpose of the FAFSA4caster?
finlep [7]

Answer:

C

Explanation:

FAFSA was created to help students get loans to go to college

5 0
3 years ago
Read 2 more answers
2,7,8,3,12,9 What is the next<br> number?
storchak [24]

<u>Answer:</u>

<em>We have to determine the pattern of numbers followed in the sequence 2, 7, 8, 3, 12, 9.</em>

<em>Do a grouping of the sequence into two groups. Let the first group be 2, 7, 8 and the second group be 3, 12, 9 </em>

<em> There is a difference of 1 in the pair 2 and 3, a difference of 5 in the pair 7 and 12 and a difference of 1 in the pair 8 and 9 </em>

<em> This means there would be a difference of 5 in the next pair. </em>

<em> So, adding 5 to the first number to the third pair. </em>

<h2><em> Hence, the next number will be 13.</em></h2>

7 0
3 years ago
Other questions:
  • Edoardo is a fifth grader who will do or say just about anything to draw attention to himself in class. Determined to be in the
    6·2 answers
  • Does anyone know how to do this there is another page but if you can’t see it zoom in
    13·1 answer
  • Which of the following new vehicle borrowers is likely to be offered the lowest APR?
    12·1 answer
  • Which was a positive effect of the Columbian Exchange for Native American cultures?
    14·1 answer
  • -Source: Edward Humes, historian, Over Here: How the G.I. Bill Transformed the American Dream, 2014
    7·1 answer
  • Which factors often affect Government and Public Administration? Check all that apply.
    9·1 answer
  • 32. In contrast to alcohol, marijuana
    15·1 answer
  • Explain how seasonal fires benefit grassland ecosystems.
    10·1 answer
  • Which of the following best explains a passive cyberattack?
    10·1 answer
  • You have been chosen by the Abercrombie and Fitch Institute of Theatrical Studies to explore Kabuki Theater in Japan. You will b
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!