The told long the call me keep
Answer:
Option D. float is the correct answer.
Explanation:
Decimal number contains decimal point. Out of all the given data types, float data type store the number with decimal point.
As the number has to be further used for calculations float ahs to be used. Because the numbers can also be stored in string but cannot be used for further calculations.
Answer:
for(String s:words)
if(s.endsWith("ing"))
System.out.println(s);
Explanation:
Create an enhanced for loop that iterates through the words array
Check if an element in words ends with "ing" using endsWith() method (Since it is said that strings are lowercase letters, we do not need to check it)
If you find one that ends with "ing", print the element
Answer:
Answered below
Explanation:
Class Unique{
public static void main(String args[]){
int myArray[] = {1, 2, 3, 4};
int newArray[];
int i;. int j; int k;
for(i = 0; i < myArray.length; I++)
for(j = 0; j< myArray.length; j++)
for(k = 0; k< myArray.length; k++){
if(i != j && j!= k && i != k ){
newArray.add(myArray[i] + myArray[j] + myArray[k]);
}
}
int count = 0;
for(int m = 0; m < newArray.length; m++){
count++;
}
System.out.print(newArray, count)
}
}
Answer:
Positive affectivity refers to positive emotions and expression, including cheerfulness, pride, enthusiasm, energy, and joy. Negative affectivity is negative emotions and expression, which includes sadness, disgust, lethargy, fear, and distress.