Computers and Technology
Computers and Technology, 28.12.2020 22:00, lee1677

What is the output of the first and second print statements? import java. util. ArrayList;

public class addExample
{
public static void main(String[] args) {
ArrayList num1 = new ArrayList ();
ArrayList num2 = new ArrayList ();
num1.add(2);
num1.add(4);

num2.add(10);
num2.add(20);

System. out. println(num1.get(0)+1);
System. out. println(num1.get(1)+ num2.get(0));

}
}

The output of the first print statement is (blank)

and the output of the second statement is (blank).

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:00, clevelandjaniya1
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, HarryPotter10
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
image
Computers and Technology, 23.06.2019 21:40, gaby06
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
image
Computers and Technology, 23.06.2019 22:20, Izzyfizzy
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
Do you know the correct answer?
What is the output of the first and second print statements? import java. util. ArrayList;

Questions in other subjects:

Konu
Chemistry, 30.07.2019 00:00
Konu
English, 30.07.2019 00:00