Answer:
Int
byte
Explanation:
In java there are eight primitive data types has a class dedicated, and then we can find eight wrapper classes, I'm going to let you the next table with the 8 example:
Assume the next table byte and Int are primitive data, the different with byte is only the capital letter Byte.
Primitive Wrapper Class
boolean Boolean
byte Byte
char Character
int Integer
float Float
double Double
long Long
short Short
System software<span> is a type of computer program that is designed to run a computer's hardware and application programs. If we think of the computer </span>system <span>as a layered model, the </span>system software<span> is the interface between the hardware and user applications</span>
Answer:
The solution code is written in Python 3
- def findStr(stringList, c):
- output = []
- for currentStr in stringList:
- if c not in currentStr.lower():
- output.append(currentStr)
- return output
-
- strList = ["Apple", "Banana", "Grape", "Orange", "Watermelon"]
- print(findStr(strList, "g"))
Explanation:
Firstly, we can create a function and name it as findStr which takes two input parameters stringList and a character, c (Line 1).
Create a list that will hold the list of strings that do not contain the input character (Line 2).
Create a for-loop to traverse through each string in the list (Line 3).
In the loop, check if the input character is not found in the current string (Line 4), if so, add the current string to the output list (Line 5). Please note we also need to convert the current string to lowercase as this program should ignore the casing.
After completion the loop, return the output list (Line 7).
We can test the function using a sample string list and input character "g" (Line 9 - 10). We shall get the output as follows:
['Apple', 'Banana', 'Watermelon']