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
liberstina [14]
3 years ago
13

Assume that word is a variable of type String that has been assigned a value. Assume furthermore that this value always contains

the letters "dr" followed by at least two other letters. For example: "undramatic", "dreck", "android", "no-drip". Assume that there is another variable declared, drWord, also of type String. Write the statements needed so that the 4-character substring word of the value of word starting with "dr" is assigned to drWord. So, if the value of word were "George slew the dragon" your code would assign the value "drag" to drWord. Submit

Computers and Technology
2 answers:
Valentin [98]3 years ago
5 0

Answer:

   String word = "George slew the dragon";

   

   int pos = word.indexOf("dr");    

   String drWord = word.substring(pos, pos+4);

   

   System.out.println(drWord);

Explanation:

Assuming dr is always there, we don't have to check the validity of 'pos'. Normally, you would!

Mazyrski [523]3 years ago
3 0

Answer:

Please see attachment

Explanation:

Please see attachment

You might be interested in
Find the maximum value and minimum value in below mention code. Assign the maximum value to maxMiles, and the minimum value to m
Kobotan [32]

Answer:

Code works perfectly

Explanation:

There is nothing wrong with your program as it runs perfectly and displays the expected results.

You may need to compile with another compiler if you're not getting the required results.

I've added the source code as an attachment (unedited)

Download java
3 0
2 years ago
You can increase your efficiency by using your e-mail program's spell checker because it eliminates the need for you to proofrea
galina1969 [7]
The answer is True bc it saves you time and is efficient
6 0
2 years ago
A acrostic sentence for mutualism?
melamori03 [73]
Must have
Understand
Today for
Urgent
Answer
List it too
It's not hard
So listen to
Me
6 0
3 years ago
My laptop screen is flashing colors all of the sudden, how can I solve this problem? Also why is this happening is it software o
MatroZZZ [7]

Explanation:

To determine whether a display driver or app is causing the problem,check to see if Task Manager flickers. ... Then, based on that information, you'll need to update, rollback, or uninstall your displ

यह निर्धारित करने के लिए कि क्या कोई डिस्प्ले ड्राइवर या ऐप समस्या पैदा कर रहा है, यह देखने के लिए जांचें कि क्या कार्य प्रबंधक फ़्लिकर करता है। ... फिर, उस जानकारी के आधार पर, आपको अपने डिस्प्ले को अपडेट, रोलबैक या अनइंस्टॉल करना होगा

i think this can help you

7 0
3 years ago
You recently discovered that several key files of your antivirus program have been deleted. you suspect that a virus has deleted
liraira [26]

Retro recently discovered that several key files of your antivirus program have been deleted.

<h3>What is antivirus example?</h3>

New versions of Microsoft Windows even include Windows Defender, which with the latest versions of Windows can defend against computer viruses. Other well-known antivirus programs include Norton antivirus and McAfee, and popular free antivirus programs include Avast and AVG.

<h3>Which antivirus is best for laptop?</h3>

McAfee Antivirus Plus is our top choice for multiple devices because its subscriptions offer protection for every device in the home for a reasonable cost.

To learn more about Antivirus Plus, refer

brainly.com/question/28050091

#SPJ4

4 0
1 year ago
Other questions:
  • Freya realizes she does not have enough in her bank account to use the debit card. She decides to use a credit card instead. Whi
    7·2 answers
  • The term drive app is used to describe applications stored on a computer true or false
    11·2 answers
  • The SETI (Search for Extraterrestrial Intelligence) project collected vast amounts of data that needed processing. SETI was one
    14·1 answer
  • When an interrogator speaks highly about how a crime was committed, hoping to get the suspect to brag about his or her involveme
    7·2 answers
  • 1. Write an expression whose value is the result of converting the str value associated with s to an int value. So if s were ass
    12·1 answer
  • Donna is a graphic designer working on a poster for a music concert. What is her objective?
    7·2 answers
  • When you are fit, you can exercise and do physical work without getting too tired. A. True B. False\
    13·2 answers
  • In this assignment we are going to practice reading from a file and writing the results of your program into a file. We are goin
    10·1 answer
  • how to create use an array of Course objects instead of individual objects like course 1, course 2, etc
    11·1 answer
  • Which of the following could be part of an algorithm?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!