Professional Documents
Culture Documents
Naveen Kumar Mittal (to Everyone): 09:30: Enter Your Employer Name:
naveen
Enter Your Basic Salary:
28000
Enter Your House Rent:
10000
Your name is naveen
Your Total Salary is 38000.0
Syed Ali Abbas (to Everyone): 09:30: Enter Your Employer Name:
okay
Enter Your Basic Salary:
1234
Enter Your House Rent:
34444
Your name is okay
Your Total Salary is 35678.0
Deep Shikhar Singh (to Everyone): 09:30: Enter Your Employer Name:
deep
Enter Your Basic Salary:
90000
Enter Your House Rent:
10000
Your name is abc
Your Total Salary is 100000.0
Kushagra Gupta (to Everyone): 09:30: Enter Your Employer Name:
kush
Enter Your Basic Salary:
50000
Enter Your House Rent:
15000
Your name is abc
Your Total Salary is 65000.0
Vijeta Vinod Savant (to Everyone): 09:30: Enter Your Employer Name:Vijeta
Enter Your Basic Salary:15000
Enter Your House Rent:5000
Your name is VijetaYour Total Salary is 20000.0
Abhishek Rana (to Everyone): 09:30: Enter Your Employer Name:
abchj
Enter Your Basic Salary:
1000000
Enter Your House Rent:
22
Your name is abchj
Your Total Salary is 1000022.0
Shivaksh Ahalawat (to Everyone): 09:56: please anyone send the code again I leave for
a second and chat was cleared
AMAN SAXENA (to Everyone): 09:56: package Batch1;
}
Shivaksh Ahalawat (to Everyone): 09:56: Thank you
AMAN SAXENA (to Everyone): 09:56: Welcome
AMAN SAXENA (to Everyone): 09:58: Saloni by mistake you have sent me
Shivaksh Ahalawat (to Everyone): 09:59: 1: Hello
2: World
Hello
import java.io.FileOutputStream;
}
}
}
}
Kushagra Gupta (to Everyone): 12:09: Usage: java FileCopy <source file>
<destination>
Piyush Shukla (to Everyone): 12:11: Usage: java FileCopy <source file> <destination>
Shipra Yadav (to Everyone): 12:11: Usage: java FileCopy <source file>
<destination>
AMAN SAXENA (to Everyone): 12:11: Usage: java FileCopy <source file>
<destination>
Deep Shikhar Singh (to Everyone): 12:11: Usage: java FileCopy <source file>
<destination>
shivendra gupta (to Everyone): 12:11: Usage: java FileCopy <source file>
<destination>
Saumya Vishwakarma (to Everyone): 12:11: Usage: java FileCopy <source file>
<destination>
Atul Gupta (to Everyone): 12:11: Usage: java FileCopy <source file> <destination>
APURV AGNIHOTRI (to Everyone): 12:11: Usage: java FileCopy <source file>
<destination>
Vijeta Vinod Savant (to Everyone): 12:11: Usage: java FileCopy <source file>
<destination>
Chirag Yadav (to Everyone): 12:11: Usage: java FileCopy <source file> <destination>
}
}
}
}
Monica (to Everyone): 12:47: Write a Java program to prompt a user to input his/her
name and then the output be shown as an example below:
Hello <Name>!
Append the Content + Login time(System time when the Name was entered) to a file:
Name_Collection.txt
Hint:Second parameter in FileWriter is to be true to append.
FileWriter fileWritter = new FileWriter(data,true);
Eg:
Run1: Enter Name: Monica Output: Hello Monica!
Run2: Enter Name: Ishu Output: Hello Ishu!
Name_Collection.txt
Monica Login time: 11:47 AM 25-08-2018
Ishu Login time: 11:49 AM 25-08-2018
Monica (to Everyone): 13:00: Topic: Java Packages through cmd line
Presenter: Atul Gupta