Skip to content

Cyberster/Wipro-Training-Java-Fundamentals---Assignments-for-Language-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Wipro TalentNext PBL

Topics Covered

Command Line Argument

No. Hands-on Assignment Topics Covered Status 1

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 the output generated should be Wipro Technologies Bangalore.

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]

Command Line Argument 	

2

Write a Program to accept a String as a Command line argument and the program should print a Welcome message.

Example :

 C:\> java Sample John

  O/P Expected : Welcome John

Command Line Argument 	

3

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

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

Command Line Argument 	

About

Topics Covered: Command Line Argument

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages