This file contains 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.Scanner; | |
public class Main | |
{ | |
public static void writeFile() | |
{ | |
PrintWriter out = null; | |
try | |
{ |
This file contains 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.ArrayList; | |
import java.util.Scanner; | |
public class Main | |
{ | |
public static ArrayList<String> readFile(){ | |
String fileName = "textFile.txt"; | |
ArrayList <String> namesArrayList = new ArrayList(); | |
File fileToRead = new File(fileName); |
This file contains 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 Main | |
{ | |
public static void exceptionThrower() throws Exception { | |
throw new Exception("Something bad happened"); | |
} | |
public static void main(String[] args) | |
{ | |
try | |
{ | |
exceptionThrower(); |
This file contains 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
// NOTE: You cannot run this entire text file at once in Java. Copy each model answer to IntelliJ to review. | |
// QUESTION 1 | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scnr = new Scanner(System.in); |
This file contains 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package unit4ps21fa; | |
/** | |
* | |
* @author YOUR_NAME_HERE |
This file contains 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
package ultrablackjack; | |
import java.util.Scanner; | |
/** | |
* | |
* @author YOURNAMEHERE | |
*/ | |
public class UltraBlackjack { | |
/** |
This file contains 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
package unit3practicequizmodel; | |
import java.util.Scanner; | |
/** | |
* | |
* @author marcfriedenberg | |
*/ | |
public class Unit3PracticeQuizModel { | |
/** | |
* @param args the command line arguments |
This file contains 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
# Any line that begins with "#" is a comment, and will not be interpreted | |
# Printing "Hello, World" | |
## We have to begin with the O.G. | |
print("Hello, World!") | |
## We are using the print() "function," which is built into python. We are saying, I would like to print, and then | |
## including what we would like to print within the parentheses. We could also print an integer using the print function: |
This file contains 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
tap "adoptopenjdk/openjdk" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" | |
brew "python@3.9" | |
brew "cask" | |
brew "coreutils" | |
brew "docker" | |
brew "exercism" |
This file contains 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package currencyconversion; | |
import java.util.Scanner; | |
/** | |
* |
NewerOlder