Posts

Showing posts from July, 2024
Image
 import java.io.*; import java.nio.file.*; import java.util.List; import java.util.stream.Collectors; public class AFO{     // Read file content     public static void readFile(String filePath) throws IOException {         List<String> lines = Files.readAllLines(Paths.get(filePath));         for (String line : lines) {             System.out.println(line);         }     }     // Write content to a file     public static void writeFile(String filePath, String content) throws IOException {         Files.write(Paths.get(filePath), content.getBytes(), StandardOpenOption.CREATE, StandardOpenOption.APPEND);     }     // Copy a file     public static void copyFile(String sourcePath, String destinationPath) throws IOException {         Files.copy(Paths.get(sourcePath), Paths.ge...

2nd Program

Image
 import java.lang.*; import java.io.*; class Questions{ public String [][]qpa; public String[][]qca;  Questions()throws IOException { qpa=new String[10][5]; /*questionsandobjectives*/ DataInputStream in=new DataInputStream(System.in); qpa[0][0]="keyboard?"; qpa[0][1]="1.input"; qpa[0][2]="2.java JavaProgram"; qpa[0][3]="3.javac JavaProgram.java";qpa[0][4]="4.No one"; qpa[1][0]="What is the use ofthe println method?"; qpa[1][1]="1.Itisusedtoprinttextonthescreen."; qpa[1][2]="2.Itisusedtoprinttextonthescreenwiththelinebreak."; qpa[1][3]="3.Itisusedtoreadtextfromkeyboard."; qpa[1][4]="4.Itisusedtoread textfromafile."; qpa[2][0]="Howtoreadacharacterfromthekeyboard?"; qpa[2][1]="1.char c=System.read()"; qpa[2][2]="2.char c=System.in.read()"; qpa[2][3]="3.char c=(char)System.read()"; qpa[2][4]="4.char c=(char)System.in.read()"; qpa[3][0]="...

Java 2nd program

 P 23 CS 366 P 23 CS 367. Ammu.M P 23 CS 368 P 23 CS 369 P 23 CS 370. Aravindhan.A P 23 CS 371 P 23 CS 372 P 23 CS 373. Gokila Kiruba   P 23 CS 374. Hepsiba.G P 23 CS 375. Indhuja P 23 CS 376. Iyswarya.S P 23 CS 377 P 23 CS 378. Kalaimani.M P 23 CS 379. Karunadithiyan.M P 23 CS 380 P 23 CS 381. Keerthika.M P 23 CS 382. Mahalakshmi P 23 CS 383. Manikandan.P P 23 CS 384. Manoj P 23 CS 385 P 23 CS 386 P 23 CS 387 P 23 CS 388 P 23 CS 389 P 23 CS 390. Pooja P 23 CS 391. Prabha.P P 23 CS 392 P 23 CS 393. Rajeswari.R P 23 CS 394. Ramya.R P 23 CS 395 P 23 CS 396. Sobiya.D P 23 CS 397. Swathi.C P 23 CS 398 Vignesh.V P 23 CS 399 P 23 CS 400. Yuvarani.MK

II Msc(cs) Student Profile

 P 23 CS 366. Akash. N  P 23 CS 367. Ammu.M  P 23 CS 368. Anbu.M  P 23 CS 369. Anbumani.A  P 23 CS 370. Aravindhan.A  P 23 CS 371  P 23 CS 372. Dhivagar. K  P 23 CS 373  P 23 CS 374. Hepsiba.G  P 23 CS 375  P 23 CS 376. Iyswarya.S  P 23 CS 377. Jeevitha.G  P 23 CS 378. Kalaimani.M  P 23 CS 379. Karunadithiyan.M  P 23 CS 380. Keerthika Lakshmi.G  P 23 CS 381. Keerthika.M  P 23 CS 382  P 23 CS 383. Manikandan.P  P 23 CS 384. Manoj.S  P 23 CS 385  P 23 CS 386. Mathavan.R  P 23 CS 387. Nikkirtha.M  P 23 CS 388. Nivedha.k  P 23 CS 389. Nivetha.G  P 23 CS 390  P 23 CS 391. Prabha.P  P 23 CS 392. Praghadheesh.TP  P 23 CS 393. Rajeswari.R  P 23 CS 394. Ramya.R  P 23 CS 395. Sharmila.S  P 23 CS 396. Sobiya.D  P 23 CS 397  P 23 CS 398. Vignesh.V  P 23 CS 399.   P 23 CS 400. Yuvarani.MK