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 mummy{ | |
double height, width; | |
int age; | |
String name; | |
public Mummy(){ | |
} | |
public double getHeight(){ |
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 RandomIntegerData { | |
public static void main(String [] args) throws IOException { | |
Scanner input = new Scanner(System.in); | |
Random randomnum = new Random(); | |
System.out.println("Enter highest value "); |
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 |
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
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 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.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.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; | |
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)); |