Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA 1.3.3: Output simple text. Write a statement that prints the following on a single output line. End with a newline. 3 2 1 Go!

JAVA

1.3.3: Output simple text.

Write a statement that prints the following on a single output line. End with a newline.

3 2 1 Go! 

Note: Whitespace (blank spaces / blank lines) matters; make sure your whitespace exactly matches the expected output.

public class OutputExample {

public static void main(String [] args) {

System.out.print("3 2 1 Go!");

return;

}

Testing for correct output

Output is nearly correct; but whitespace differs. See highlights below

Your output

3 2 1 Go!

Expected output

3 2 1 Go!

}

Write code that prints the following. End each output line with a newline.

A1 B2 

Note: Whitespace (blank spaces / blank lines) matters; make sure your whitespace exactly matches the expected output.

public class OutputExample {

public static void main (String [] args) {

System.out.println ("A1");

System.out.print("B2");

return;

}

}

could u help where i am making the mistake please and thanks

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

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

Identify possible reasons for ineffective performance.

Answered: 1 week ago