Purchase Solution

JAVA Text Printing Program

Not what you're looking for?

Ask Custom Question

Compile a two-line text-printing program, similar to the Java welcome programming examples below. Using the example techniques compile a two line text program.

The first line should display the following text: "Hi, my name is [insert your name]." The second line should display the following text: "I was born in [insert your birth place].

Example

1 // Fig. 2.3: Welcome2.java
2 // Printing a line of text with multiple statements.
3
4 public class Welcome2
5 {
6 // main method begins execution of Java application
7 public static void main( String args[] )
8 {
91
0
11
12 } // end method main
13
14 } // end class Welcome2.

Purchase this Solution

Solution Summary

The solution compiles a two-line text-printing program. Code shows you how to print text in separate lines (see attachment).

Solution Preview

See attached file.
A java program source code can be identified as a file ending with a .java extension like the attached file. You need to ensure that the code that you have ...

Purchase this Solution


Free BrainMass Quizzes
C# variables and classes

This quiz contains questions about C# classes and variables.

Javscript Basics

Quiz on basics of javascript programming language.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.