- Information
- AI Chat
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Was this document helpful?
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Java Labcycle 1 - Simple(Basic) Java Programs with outputs for each.
Course: Bachelor of Computer Applications (BCA2020)
999+ Documents
Students shared 2571 documents in this course
University: Mahatma Gandhi University
Was this document helpful?
This is a preview
Do you want full access? Go Premium and unlock all 19 pages
Access to all documents
Get Unlimited Downloads
Improve your grades
Already Premium?
LAB CYCLE 1
Question 1
Write a program to add two numbers using command line arguments .
Aim
Find a java program to add two numbers using the numbers as command line arguments .
Program
class Add{
public static void main(String[] args){
int a,b,sum=0;
a=Integer.parseInt(args[0]);
b=Integer.parseInt(args[1]);
sum=a+b;
System.out.println("Sum of " +a + " and " + b + " = " + sum);
}
}
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Students also viewed
- Cropyyyy
- Basic Statistics and Introductory Probability Theory,BCA 1st Semester
- Bca 3 sem advanced statistical methods 21100700 mar 2021
- Bsc bca 1 sem methodology of programming and c language 19103222 nov 2019
- Java Labcycle 4 - Simple(Basic) Java Programs with outputs for each.
- Java Labcycle 3 - Simple(Basic) Java Programs with outputs for each.