This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.util.*; | |
import java.io.*; | |
public class StudentAppBinary { | |
public static void main(String [] args) throws IOException { | |
Scanner input = new Scanner(System.in); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class carClass{ | |
public class Car{ | |
private String brand; | |
private double pricePerDay; | |
private int availablity; | |
public Car(String brand, double pricePerDay int availablity){ | |
this.availablity = availablity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DateApp{ | |
//Instance variables | |
public int day; | |
public int month; | |
public int year; | |
//Constructors | |
// 1st. Constructor without parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.io.*; | |
public class flipLines { | |
public static void main(String [] args) { | |
Scanner input = new Scanner(System.in); | |
Scanner file = new Scanner(new File(toFlip.txt)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.io.*; | |
public class countingLines { | |
public static void main(String [] args) { | |
try { | |
//Scans file | |
Scanner input = new Scanner(System.in); | |
Scanner file = new Scanner(new File(text2.txt)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class reverseWriter { | |
public static void main (String args[]){ | |
String[] fileContents; | |
String[] reversedContents; | |
int count = 1; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class studentClass{ | |
private String id, name; | |
private double gpa; | |
private int coursesTaken; | |
public Student(String id, String name, double gpa, int coursesTaken){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class readFiles{ | |
public static void main(String[] args) throws IOException{ | |
Scanner input = new Scanner(System.in); | |
int a = input.nextInt(); | |
int b = input.nextInt(); | |
int[][] array = new int[a][b]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class clientsApp{ | |
public static void main(String [] args) throws IOException{ | |
try{ | |
Scanner file = new Scanner(new File("clients.txt")); | |
PrintWriter outputFileM = new PrintWriter( | |
new BufferedWriter( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class reading |
NewerOlder