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.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.PreparedStatement; | |
| import java.sql.SQLException; | |
| import java.util.Scanner; | |
| /** | |
| * @author Ihor Solohub. | |
| * Создать проект «База данных заказов». Создать | |
| таблицы «Товары» , «Клиенты» и «Заказы». |
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.sql.*; | |
| import java.util.Scanner; | |
| /** | |
| * @author Ihor Solohub. | |
| * Спроектировать базу «Квартиры». Каждая запись | |
| в базе содержит данные о квартире (район, | |
| адрес, площадь, кол. комнат, цена). Сделать | |
| возможность выборки квартир из списка по | |
| параметрам. |
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
| QuestionnaireWithLogin |
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 kursovik.utils; | |
| import kursovik.product.*; | |
| import java.io.*; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class ProductIOUtils { | |
| public static final String CSV_DELIMETR = ";"; |
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 kursovik; | |
| import kursovik.product.*; | |
| import kursovik.utils.*; | |
| import java.util.Collections; | |
| import java.util.List; | |
| public class Runner { | |
| public static void main(String[] args) { |
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 JavaOOP.InheritanceAndPolymorfism.TaskEarth; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /* Глава 3. | |
| 5. Создать объект класса Планета, используя классы Материк, Океан, Остров. | |
| Методы: вывести на консоль название материка, планеты, количество материков. | |
| */ | |
| public final class PlanetRunner { |
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 JavaOOP.InheritanceAndPolymorfism.TaskEarth; | |
| public final class Planet { | |
| private String name; | |
| private Continent continent; | |
| private Ocean ocean; | |
| private Island island; | |
| public Planet(String name, Continent continent, Ocean ocean, Island island) { |
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 JavaOOP.InheritanceAndPolymorfism.TaskEarth; | |
| public final class Ocean { | |
| private String name; | |
| int depth; | |
| public Ocean() { | |
| } |
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 JavaOOP.InheritanceAndPolymorfism.TaskEarth; | |
| public final class Island { | |
| private String location; | |
| private String name; | |
| double area; | |
| public Island() { | |
| } |
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 JavaOOP.InheritanceAndPolymorfism.TaskEarth; | |
| import java.util.List; | |
| public final class Continent { | |
| private String name; | |
| double area; | |
| public Continent() { |
NewerOlder