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
package com.example.anime; | |
public class AnimeLibrary { | |
private String animeTitle; | |
private double score; | |
private String type; //movie | |
private int episodes; | |
private String genres; | |
private String rating; // age |
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
package com.example.lesson17; | |
public class Computer { | |
private String processor; | |
private String ram; | |
private String hdd; | |
private String videoCard; | |
private String powerSupply; | |
public Computer() { |
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
package com.example.javalessons; | |
import java.util.Locale; | |
import java.util.Scanner; | |
public class Calculator { | |
private double resultValue; | |
private double divResultValue; | |
private double numberBeforeSquareRootExtraction; | |
private double squareRootCalcResult; |
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
package computer; | |
import java.util.Locale; | |
import java.util.Scanner; | |
public class Calculator { | |
private double resultValue; | |
private double divResultValue; | |
private double numberBeforeSquareRootExtraction; | |
private double squareRootCalcResult; |
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.FileReader; | |
import java.io.FileWriter; | |
import java.io.BufferedReader; | |
import java.io.PrintWriter; | |
import java.io.IOException; | |
import java.io.File; | |
public class FileManager{ | |
public static void copyFile(String firstFile, String secondFile) throws Exception { |
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.FileReader; | |
import java.io.FileWriter; | |
import java.io.BufferedReader; | |
import java.io.PrintWriter; | |
import java.io.IOException; | |
public class FileManager{ | |
public static void copyFile(String firstFile, String secondFile) throws Exception { | |
try ( |
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.FileReader; | |
import java.io.FileWriter; | |
import java.io.BufferedReader; | |
import java.io.PrintWriter; | |
import java.io.IOException; | |
public class FileManager { | |
public static void main(String[] args) throws Exception { | |
try ( |
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.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
public class FileManager { | |
public static void main(String[] args) throws Exception { | |
FileInputStream fin = new FileInputStream("first.txt"); | |
FileOutputStream fout = new FileOutputStream("second.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.Locale; | |
import java.util.Scanner; | |
class Calculator { | |
private double firstNumber; | |
private double secondNumber; | |
private double resultValue; | |
private double divResultValue; | |
private int array; | |
private int twoDimArray; | |
private double numberBeforeSquareRootExtraction; |
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; | |
class Calculator { | |
private int firstNumber; | |
private int secondNumber; | |
private int resultValue; | |
private int divResultValue; | |
private int array; | |
private int twoDimArray; | |
private double wowSoSquare; | |
private double numberBeforeSquareRootExtraction; |
NewerOlder