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!
The symbol that we do use to assign a value to a variable or constant in algorithms is =.
<h3>What is used to assign a constant to a variable?</h3>
The const keyword is known to be one that tends to specifies a variable or object value that is known to be constant.
In computing and computer programming, there are different kinds of variables as well as symbols that are used for different purposes.
Note that if you assign a variable, you need to use the = symbol and thus The symbol that we do use to assign a value to a variable or constant in algorithms is =.
Learn more about algorithms from
brainly.com/question/13800096
#SPJ1
Explanation:
The Name is called, (navigation menu..)
to direct users 2 info., they look up...
The most common was is your phone
Answer: Public
Explanation:
A top level class can have a public, as top level cannot be private and protected because the modifier private is not allowed. As, top level is a class which is not a nested class. Interface of a access modifier is either public or no modifier. There are two types of access control modifier are top level - public and member level- private, protected.