TY B.B.A. (C.A.) Sem V : Core Java Practical Slips Solutions
SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE T.Y.B.B.A.(C.A.) Semester – V (CBCS 2019 Pattern) University Practical Examination Lab Course: (CA-506) Computer Laboratory Based on 503, 504 Core Java, MongoDB / Python Q.1. Core Java: Slip No. 1 /** A) Write a ‘java’ program to display characters from ‘A’ to ‘Z’. */ class Slip1_A { public static void main(String args[]) { for(char ch = 'A' ; ch <= 'Z'; ch++) { System.out.print(ch+" "); } } } /** B) Write a ‘java’ program to copy only non-numeric data from one file to another file. */ import java.io.*; class Slip1_B { public static void main(String args[]) throws IOException { File ifile = new File("in.dat"); File ofile = new File("out.dat"); try{ FileReader in = new FileReader(ifile); FileWriter out = new FileWriter(ofil...