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.level14.lesson08.bonus02; | |
/* НОД | |
Наибольший общий делитель (НОД). | |
Ввести с клавиатуры 2 целых положительных числа. | |
Вывести в консоль наибольший общий делитель. | |
*/ | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; |
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.level15.lesson02.task02; | |
/* ООП - наследование животных | |
1. Создать public static класс Goose(Гусь). | |
2. Создать public static класс Dragon(Дракон). | |
3. Унаследовать класс Goose от BigAnimal или SmallAnimal, подумать, какой логически больше подходит. | |
4. Унаследовать класс Dragon от BigAnimal или SmallAnimal, подумать, какой логически больше подходит. | |
5. В классах Goose и Dragon переопределить метод String getSize(), расширить видимость до максимальной. | |
6. В классе Goose метод getSize должен возвращать строку "Гусь маленький, " + [getSize родительского класса]. | |
7. В классе Dragon метод getSize должен возвращать строку "Дракон большой, " + [getSize родительского класса]. |
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.level15.lesson12.home05; | |
/** | |
* Created by Vaio on 24.08.2014. | |
*/ | |
public class SubSolution extends Solution | |
{ | |
SubSolution() | |
{ | |
super(); |
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.level15.lesson12.home05; | |
/** | |
* Created by Vaio on 24.08.2014. | |
*/ | |
public class SubSolution extends Solution | |
{ | |
SubSolution() | |
{ | |
super(); |
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 MoveTestOrange; | |
import javax.swing.*; | |
/** | |
* Created by Vaio on 14.09.2014. | |
*/ | |
public class Main { | |
public static void main(String[] args) throws InterruptedException { | |
Player player = new Player(300, 300, 50); |
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.level19.lesson05.task02; | |
/* Считаем слово | |
Считать с консоли имя файла. | |
Вывести в консоль количество слов "world", которые встречаются в файле. | |
Закрыть поток ввода. | |
*/ | |
import java.io.*; | |
import java.util.ArrayList; |
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.level19.lesson05.task02; | |
/* Считаем слово | |
Считать с консоли имя файла. | |
Вывести в консоль количество слов "world", которые встречаются в файле. | |
Закрыть поток ввода. | |
*/ | |
import java.io.*; | |
import java.util.ArrayList; |
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.level19.lesson05.task02; | |
/* Считаем слово | |
Считать с консоли имя файла. | |
Вывести в консоль количество слов "world", которые встречаются в файле. | |
Закрыть поток ввода. | |
*/ | |
import java.io.*; | |
import java.util.ArrayList; |
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.level19.lesson05.task04; | |
/* Замена знаков | |
Считать с консоли 2 имени файла. | |
Первый Файл содержит текст. | |
Заменить все точки "." на знак "!", вывести во второй файл. | |
Закрыть потоки ввода-вывода. | |
*/ | |
import java.io.*; |
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.level19.lesson05.task04; | |
/* Замена знаков | |
Считать с консоли 2 имени файла. | |
Первый Файл содержит текст. | |
Заменить все точки "." на знак "!", вывести во второй файл. | |
Закрыть потоки ввода-вывода. | |
*/ | |
import java.io.*; |
OlderNewer