0% found this document useful (0 votes)
57 views2 pages

Hands-On Assignments For Language Basics: Complete The Below Hands-On Assignments Before Proceeding With The Next Topic

The document provides instructions for three hands-on programming assignments to practice accepting command line arguments in Java programs. The first assignment requires a program to concatenate two strings passed as arguments and add "Technologies" in the middle. The second requires a welcome message printing the argument. The third requires a program to sum two integers passed as arguments and print the result. Students must complete the assignments before proceeding to the next topic.

Uploaded by

ViJay KuMar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views2 pages

Hands-On Assignments For Language Basics: Complete The Below Hands-On Assignments Before Proceeding With The Next Topic

The document provides instructions for three hands-on programming assignments to practice accepting command line arguments in Java programs. The first assignment requires a program to concatenate two strings passed as arguments and add "Technologies" in the middle. The second requires a welcome message printing the argument. The third requires a program to sum two integers passed as arguments and print the result. Students must complete the assignments before proceeding to the next topic.

Uploaded by

ViJay KuMar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Hands-on Assignments for Language Basics

Complete the below hands-on assignments before proceeding with the next Topic

Update Completion Status

Topics
No. Hands-on Assignment Status
Covered

Write a Program that accepts two Strings as command line


arguments and generate the output in a specific way as given
below.

Example:

If the two command line arguments are Wipro and Bangalore then Command
1 the output generated should be Wipro Technologies Bangalore. Line
Argument

If the command line arguments are ABC and Mumbai then the
output generated should be ABC Technologies Mumbai

[Note: It is mandatory to pass two arguments in command line]

Write a Program to accept a String as a Command line argument


and the program should print a Welcome message.

Example :
Command
2 Line
C:\> java Sample John Argument

O/P Expected : Welcome John

Write a Program to accept two integers through the command


line Command
3 Line
argument and print the sum of the two numbers
Argument
Example:

C:\>java Sample 10 20

O/P Expected : The sum of 10 and 20 is 30


Write a Program to accept two integers through the command
line
argument and print the sum of the two numbers

Example:

C:\>java Sample 10 20

O/P Expected : The sum of 10 and 20 is 30

You might also like