The due date of the playing card lab has again been pushed out. It is now due the Friday before break.
mr. sarkar
Monday, March 16, 2015
Friday, March 13, 2015
How to pass a filename to a program
The code below assumes that the filename to be used by the progam is contained in args[0]
public class FileNameDemo
{
public static void main(String [] args) {
String fileName = args[0];
FileReader reader = new FileReader(fileName);
Scanner inputFile = new Scanner(reader);
}
}
public class FileNameDemo
{
public static void main(String [] args) {
String fileName = args[0];
FileReader reader = new FileReader(fileName);
Scanner inputFile = new Scanner(reader);
}
}
Friday, March 6, 2015
Playing Card Lab Due Date Pushed to 3/23
Given all the sorting code is due next week, the Playing Card Lab is now due on 3/23.
mr. sarkar
mr. sarkar
Subscribe to:
Posts (Atom)