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!
Answer:
computer science is the study of computer and computing as well as theoretical and practical applications.
pls give me thanks ☺️☺️
Three inputs have 8 possible states.
Here they are:
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Answer:.......
void clear(int *array, int length){
if (length == 0)return;
array[0] = 0;
clear(array + 1, length-1);
}
Explanation:
The void function accepts an integer array.
Runs out of memory
has uninitialized variables
uses undefined behaviour