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

MileStone1-LanguageBasics

The document describes 3 hands-on programming assignments to complete. The first assignment involves writing a program to take two string command line arguments and output them in a specific format. The second takes a single string argument and prints a welcome message. The third takes two integer arguments and prints their sum. For each assignment an example is provided showing the expected command line input and output.

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)
27 views2 pages

MileStone1-LanguageBasics

The document describes 3 hands-on programming assignments to complete. The first assignment involves writing a program to take two string command line arguments and output them in a specific format. The second takes a single string argument and prints a welcome message. The third takes two integer arguments and prints their sum. For each assignment an example is provided showing the expected command line input and output.

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

No Topics
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


3 Command
line
Line
Argument
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


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