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 IgorDolgov.ex001; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Plate plate = new Plate(); // Общая на всех тарелка | |
| Cat cat = new Cat(); // Кошка | |
| cat.eatFrom(plate); // кошка кушает из тарелки, которую передали ей в параметрах | |
| plate.feed(cat); // тарелка "кормит" кошку, которую ей передали в параметры | |
| } |
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 calcRA; | |
| import java.util.InputMismatchException; | |
| import java.util.Scanner; | |
| public class RomanArabianCalc { | |
| static Scanner scanner = new Scanner(System.in); | |
| static int number1, number2; | |
| static char operation; |
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 IgorDolgov.book; | |
| public class Test { | |
| public static void main(String[] args) { | |
| testStackOverflow(0, 5); | |
| } | |
| private static void testStackOverflow() { | |
| System.out.println("Перегрузка"); | |
| } |
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 IgorDolgov.cats; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Cat masha = new Cat("Маша"); | |
| Cat misha = new Cat("Миша"); | |
| Cat gala = new Cat("Галя"); | |
| Cat kate = new Cat("Kate"); |
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 IgorDolgov.cats; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Cat masha = new Cat("Маша"); | |
| Cat misha = new Cat("Миша"); | |
| Cat gala = new Cat("Галя"); | |
| Cat kate = new Cat("Kate"); |
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 IgorDolgov.cats; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Cat masha = new Cat("Маша"); | |
| Cat misha = new Cat("Миша"); | |
| Cat gala = new Cat("Галя"); | |
| Cat kate = new Cat("Kate"); |
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 IgorDolgov.booklist; | |
| import java.util.ArrayList; | |
| import java.util.Scanner; | |
| class Book { | |
| String name; | |
| String writer; |
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 IgorDolgov.stringcalculator; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.InputMismatchException; | |
| import java.util.Scanner; | |
| //Задача: программа "Строковый калькулятор" | |
| // Описание: | |
| // Создайте консольное приложение "Строковый калькулятор". | |
| // Приложение должно читать из консоли введенные пользователем строки, числа, арифметические операции проводимые между ними и выводить в консоль |
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 IgorDolgov.stringcalculator; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.InputMismatchException; | |
| import java.util.Scanner; | |
| //Задача: программа "Строковый калькулятор" | |
| // Описание: | |
| // Создайте консольное приложение "Строковый калькулятор". | |
| // Приложение должно читать из консоли введенные пользователем строки, числа, арифметические операции проводимые между ними и выводить в консоль |
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 IgorDolgov.stringcalcOOP; | |
| import java.util.InputMismatchException; | |
| import java.util.Scanner; | |
| // 160 При умножении строки на число выводит правильный ответ но впереди null ("a" * 5 = nullaaaaa)? | |
| //Задача: программа "Строковый калькулятор" | |
| // Описание: |