Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 2 pts ) In an array declaration, this indicated the number of elements that the array will have. subscript size declarator element sum reference
pts In an array declaration, this indicated the number of elements that the array will have. subscript size declarator element sum reference variable pts The last subscript in an array is always less than the number of elements pts This array field holds the number of elements that the array has size elements length width pts This type of method cannot access any nonstatic member variables in its own class. instance void static nonstatic pts Making an instance of one class a field in another class is called nesting class fielding aggregation concatenation pts If you write this method for a class, Java will automatically call it any time you concatenate an object of the class with a string toString plusString stringConvert concatString ptsThe String class has several overloaded versions of a method that accepts a value of any primitive data type as its argument and returns a string representation of the value. The name of the method is stringValue valueOf getString valToString pts To change the value of a specific character in a StringBuilder object, use this method. changeCharAt setCharAt setChar change pts The character that separated tokens in a string is known as a separator tokenizer delimiter Terminator pts This String method breaks a string into tokens. break tokenize getTokens split Part pts Write a statement that declares an integer array named test. Initialize the array with the following values: points Write a loop while or for that displays the contents of a double array named temp Assume that the array was created and initialize with values. points Write a method that accepts an integer array as an argument and returns the sum of the values of the array plus points Given the following code, what is the output points import java.util.ArrayList; public class Pg public static void mainString args ArrayList pets new ArrayList; pets.addDuncan;pets.addMiles;for int i ; i pets.size; i System.out.printlnpetsgeti;Systemout.printlnpetsget; Output: Write a method just the method called checkDigit that accepts a String as its argument. The method should return true if the string contains a digit, otherwise, it should return false. points Write a loop that counts the number of lowercase characters that appear in the String object str points What would be the output if you call this method with the argument in a println statement from the main method? points public static int testStringString str int count ; String s strsplit; for int i ; i slength; i if IntegerparseIntsi count; System.out.printlnBelow ; return count; Answer : EXTRA CREDIT POINTS Write a Java program complete program with main with the following properties: Has a dimensional integer array with rows and columns points Assign any values to the elements in the array points Find the largest value in the array points Find the smallest value in the array points Output the largest value and the smallest value to the screen points
pts In an array declaration, this indicated the number of elements that the array will have.
subscript
size declarator
element sum
reference variable
pts The last subscript in an array is always
less than the number of elements
pts This array field holds the number of elements that the array has
size
elements
length
width
pts This type of method cannot access any nonstatic member variables in its own class.
instance
void
static
nonstatic
pts Making an instance of one class a field in another class is called
nesting
class fielding
aggregation
concatenation
pts If you write this method for a class, Java will automatically call it any time you concatenate an object of the class with a string
toString
plusString
stringConvert
concatString
ptsThe String class has several overloaded versions of a method that accepts a value of any primitive data type as its argument and returns a string representation of the value. The name of the method is
stringValue
valueOf
getString
valToString
pts To change the value of a specific character in a StringBuilder object, use this method.
changeCharAt
setCharAt
setChar
change
pts The character that separated tokens in a string is known as a
separator
tokenizer
delimiter
Terminator
pts This String method breaks a string into tokens.
break
tokenize
getTokens
split
Part pts
Write a statement that declares an integer array named test. Initialize the array with the following values: points
Write a loop while or for that displays the contents of a double array named temp Assume that the array was created and initialize with values. points
Write a method that accepts an integer array as an argument and returns the sum of the values of the array plus points
Given the following code, what is the output points
import java.util.ArrayList;
public class Pg
public static void mainString args
ArrayList pets new ArrayList;
pets.addDuncan;pets.addMiles;for int i ; i pets.size; i System.out.printlnpetsgeti;Systemout.printlnpetsget;
Output:
Write a method just the method called checkDigit that accepts a String as its argument. The method should return true if the string contains a digit, otherwise, it should return false. points
Write a loop that counts the number of lowercase characters that appear in the String object str points
What would be the output if you call this method with the argument in a println statement from the main method? points
public static int testStringString str int count ; String s strsplit; for int i ; i slength; i if IntegerparseIntsi count; System.out.printlnBelow ; return count;
Answer :
EXTRA CREDIT POINTS
Write a Java program complete program with main with the following properties:
Has a dimensional integer array with rows and columns points
Assign any values to the elements in the array points
Find the largest value in the array points
Find the smallest value in the array points
Output the largest value and the smallest value to the screen points
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started