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
| - Git(1) - розподілена система керування версіями файлів та спільної роботи. (©Wikipedia) | |
| - Git(2) - консольний клієнт для роботи з системою керування версіями файлів Git. | |
| - GitHub - один з найбільших веб-сервісів для спільної розробки програмного забезпечення. Базується на системі керування версіями Git. (©Wikipedia) | |
| - GitHub Gist - один з сервісів GitHub, за допомогою якого можна поділитись своїм кодом. | |
| Або можна зробити швидку замітку лістингу коду, який ви не хочете загубити. | |
| IntelliJ IDEA має вбудовані функції для робити з Git. | |
| В репозіторії Git'a ми повинні зберігати лише сирцеві файли(файли вихідного коду, які мають розширення .java), відкомпільовані файли та файли налаштування проекту не повинні бути в репозиторії Git'a. | |
| Найменшою одиницею інформації в Git є - стрічка, стрічка може бути додана або видалена(редагування стрічки це її видалення і створення нової на її місці). | |
| Стрічки які ви змінили об'єднуються в коміти, коміт - це набір змін, які відбулися над файлами(стрічками файлів). |
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 Ex1 { | |
| public static void main(String[] args) { | |
| System.out.println("Enter first leg of triangle: "); | |
| double a = getDoubleNumberFromUser(); | |
| System.out.println("Enter second leg of triangle: "); | |
| double b = getDoubleNumberFromUser(); | |
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 Ex1 { | |
| public static void main(String[] args) { | |
| printTable(7, 8) | |
| } | |
| // Ваша реалізація функції "printTable" | |
| } |
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 Main { | |
| public static void main(String[] args) { | |
| Table stol = new Table(2000, "Some model", "Cyan"); | |
| stol.printInformation(); | |
| } | |
| } |
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 Main { | |
| public static void main(String[] args) { | |
| Table stol = createTable(); | |
| printTableInfo(stol); | |
| } | |
| private static Table createTable() { | |
| Scanner scanner = 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
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| public class FileApiExample { | |
| public static void main(String[] args) throws IOException { | |
| File file = new File("D:/test-java.txt"); | |
| file.createNewFile(); | |
| FileOutputStream outputStream = new FileOutputStream(file); |
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.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| public class Task1 { | |
| public static void main(String[] args) throws IOException { | |
| File file = new File("D:/test-java.txt"); | |
| file.createNewFile(); | |
| FileOutputStream outputStream = new FileOutputStream(file); |
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.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| public class Task2 { | |
| public static void main(String[] args) throws IOException { | |
| File file = new File("D:/test-java.txt"); | |
| file.createNewFile(); | |
| FileOutputStream outputStream = new FileOutputStream(file); |
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 Box { | |
| public void drop() { | |
| System.out.println("Bom"); | |
| } | |
| } |
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.*; | |
| public class App { | |
| public static void main(String[] args) { | |
| ArrayList<String> cities = new ArrayList<>(); | |
| //Start | |
| boolean isFound = false; | |
| for (String city : cities) { | |
| if (city.equals("Monte")) { |