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.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.*; | |
/* Задача по алгоритмам | |
Написать метод, который возвращает минимальное и максимальное числа в массиве. |
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 com.javarush.test.level12.lesson12.bonus03; | |
/* Задача по алгоритмам | |
Написать метод, который возвращает минимальное число в массиве и его позицию (индекс). | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) throws Exception | |
{ |
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 com.javarush.test.level11.lesson11.bonus02; | |
/* Нужно добавить в программу новую функциональность | |
Добавь общий базовый класс к классам-фигур: (фигуры из шахмат). | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) | |
{ |
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 com.javarush.test.level11.lesson11.bonus02; | |
/* Нужно добавить в программу новую функциональность | |
Добавь общий базовый класс к классам-фигур: (фигуры из шахмат). | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) | |
{ |
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 com.javarush.test.level11.lesson11.bonus02; | |
/* Нужно добавить в программу новую функциональность | |
Добавь общий базовый класс к классам-фигур: (фигуры из шахмат). | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) | |
{ |
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 com.javarush.test.level13.lesson02.task09; | |
/* Наследование интерфейса | |
1. Создать интерфейс Movable с методом speed. | |
2. Метод speed возвращает значение типа Double и не принимает параметров. | |
3. Создать и унаследовать интерфейс Runable от интерфейса Movable. | |
4. Добавить в интерфейс Runable метод speed. | |
5. Метод speed возвращает значение типа Double и принимает один параметр типа Runable. | |
*/ |
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 com.javarush.test.level13.lesson02.task10; | |
/* CleverMan и SmartGirl | |
1. Добавь интерфейсы Secretary и Boss к классам CleverMan и SmartGirl. По одному на каждый. Подумай, кому какой. | |
2. Унаследуй интерфейсы Secretary и Boss от интерфейсов Person и Workable так, | |
чтобы все методы у классов CleverMan и SmartGirl оказались объявленными в каком-то интерфейсе. | |
*/ | |
public class Solution | |
{ |
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 com.javarush.test.level13.lesson04.task02; | |
/* Исправление кода | |
Исправить код так, чтобы программа выполнялась и выводила "Я переводчик с английского". | |
Метод main менять нельзя! | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) throws Exception |
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 com.javarush.test.level13.lesson04.task03; | |
import java.awt.*; | |
/* Интерфейс Animal | |
1. Унаследовать Fox от интерфейса Animal. | |
2. Поменяй код так, чтобы в классе Fox был только один метод - getName. | |
3. Методы удалять нельзя! | |
*/ |
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 com.javarush.test.level13.lesson04.task04; | |
import java.awt.*; | |
/* Класс BigFox | |
1. Исправь класс BigFox так, чтобы программа компилировалась. | |
2. Метод main менять нельзя. | |
*/ | |
public class Solution |
OlderNewer