Skip to content

kaustavsaha018/WT-LAB-11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WT-LAB-11

Java Programs on String Handling and File Handling


QUESTIONS:

1. Write a program in java to demonstrate the following String functions on any example using String class
 a. join()
 b. isEmpty()
 c. replace()
 d. split()
 e. subString()

2. Write a program in java to demonstrate the following stringBuffer functions on the string “Java is my favorite Programming Language”
 a. append()
 b. insert()
 c. delete()
 d. ensureCapacity()
 e. capactity()
 f. reverse()

3. Write a program in java to write Your details like roll number, name, branch and university into a File called “Student.txt”. Now read the same file and display the details on the Terminal. Write two separate programs using following classes
 a. FileInputStream and FileOutputStream
 b. FileReader and FileWriter

4. Write a program in java to read and convert all ’@’ symbols in a file to ‘#’ Symbol

About

Java Programs on String Handling and File Handling

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages