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
Every time 5-year-old Peter picked up his toys, his mother gave him a penny. After some time, she stopped giving him pennies to
Nadya [2.5K]

Answer:

Spontaneous recovery.

Explanation:

Latent learning refers to a person learns something but doesn't show it immediately but at a later time when it is needed.

Extinction refers to a decrease in a certain behavior because the reinforcement was eliminated.

Spontaneous recovery is a situation in which a response that had been eliminated appears again.

Reinforcement refers to anything that encourages a certain behavior.

According to this, Peter asking for a penny after a period of 3 months exemplifies spontaneous recovery.

3 0
4 years ago
Where would a blend of african and western cultures could be found most readily in the twentieth century?
Anastasy [175]
In Harlem during the Harlem Renaissance .....
3 0
3 years ago
Read 2 more answers
In the article “Who Shaped our Behaviors? Peers or Parents?”, Judy Rich Harris suggests that __________ are the most influential
Andrei [34K]

Answer:

C. Peers

Explanation:

Edg 21

6 0
3 years ago
Read 2 more answers
By "the ruling power in the United States" (paragraph 3, sentence 2) the speaker means the
vovikov84 [41]

Answer:

A. majority of voters

Explanation:

I took the test and I got it right

6 0
3 years ago
Which era does the rock from the Canadian Shield date back to
kondaur [170]
A Precambrian the Canadian shield dates back almost 4 billion years ago about the same time as the Precambrian eon. 
5 0
3 years ago
Other questions:
  • Did anyone or anything slow or prevent the Olympic games<br> movement?
    5·1 answer
  • THIS IS HOMEWORK!!!<br> SOMEONE HELP ME PLEASE<br> How do you unblock stuff on a school computer?!?!
    15·2 answers
  • Integrate the function ∫(x^2/(x^2+25))ⅆx.
    13·1 answer
  • Which statement describes an example of gerrymandering?
    10·2 answers
  • What color are most peaches?
    12·1 answer
  • 1.¿Cuál es la importancia de las empresas para la sociedad?
    7·1 answer
  • When creating a database, after you have created fields, selected a key field, and named your database,
    9·1 answer
  • Anagha is interested in buying a new Model X car and wants to gather information about how the selling price of the car is relat
    6·1 answer
  • Explain triangular trade
    12·1 answer
  • What is the difference between a table of contents and an index?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!