Answer:
char firstLeter = name.charAt(0);
Explanation:
Consider the program below:
public class num2 {
public static void main(String[] args) {
String name = "Smith";
char firstLetter = name.charAt(0);
System.out.println(firstLetter);
}
}
In this program, A string name is defined and assigned the value "Smith".
Java's String method charAt() is called and passed the argument of index 0. This causes it to output the character S. Since this is the first letter in the String is at index 0.
Answer:
puede ser la cok puede ser la c
<u>Input
:</u>
*Processing*
<u>
Output
:</u>
An array full of numbers which is terminated by 0.
<u>
Algorithm:
</u>
1. **Start
2. **Take an array, max, and min as variables.
3. **Get the numbers from the user.
4. **Initialize the max and min variables as a[0].
5. **Now, check if max>a[i]. If true, reinitialize max=a[i].
6. **Check if min<a[i]. If true, reinitialize min=a[i].
7. **Print max and min.
8. **Stop
Answer:
C. how and where the data are physically arranged and stored.
Explanation:
The physical view as the name implies describes how and where the data are physically arranged in the database. This deals with the physical arrangement of data in the database. This user usually view the database in a logical way. e.g table. The physical arrangement is usually used by database specialists. There can be multiple logical view of a database but just a single view of the physical view.