Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the output is: Last night the Dodgers scored 2 , the Yankees scored 3 , and the Cubs scored: 4 . End the last output

the output is:
Last night the Dodgers scored 2, the Yankees scored 3, and the Cubs scored: 4.
End the last output with a newline.
LAB ACTIVITY
31.3.1: Programming Project #01C
Baseball.java
public class Baseball {
public static void main(String [] args){
int dodgers;
int yankees;
int cubs;
System.out.println("Last night the Dodgers scored 2,");
System.out.println("the Yankees scored 3, and ");
?
system.out.println("the cubs scored 4.");
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

4 How can employee involvement be achieved?

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago