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
| /* | |
| * Домашняя работа 2 | |
| * Задание 1 | |
| * Написать программу которая считывает 5-и значное число с | |
| * клавиатуры и выводит цифры из которого оно состоит. | |
| */ | |
| package com.gmail.slartua; | |
| 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
| /* | |
| * Домашняя работа 3 | |
| * Задание 1 | |
| * Написать программу которая считает 4 числа c клавиатуры и выведет на | |
| * экран самое большое из них. | |
| */ | |
| package com.gmail.slartua; | |
| 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
| /* | |
| * Домашняя работа 3 Уровень 2 | |
| * Задание 1 | |
| * Есть круг с центром в начале координат и радиусом 4. Пользователь | |
| * вводит с клавиатуры координаты точки x и y. Написать программу которая | |
| * определит лежит ли эта точка внутри круга или нет. | |
| */ | |
| package com.gmail.slartua; |
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
| /* | |
| * Домашняя работа 4 | |
| * Задание 2 Уровень 1 | |
| * Вычислить с помощью цикла факториал числа - n введенного с | |
| * клавиатуры (4<n<16). | |
| */ | |
| package com.gmail.slartua; | |
| 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
| /* | |
| * Домашняя работа 5 | |
| * Задание 4 Уровень 1 | |
| * Введите строку текста с клавиатуры — реализуйте программу для | |
| * возможности подсчета количества символа — 'b' в этой строке, с выводом | |
| * результата на экран. | |
| */ | |
| package com.gmail.slartua; |
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
| /* | |
| * Домашняя работа 5 | |
| * Задание 4 Уровень 2 | |
| * 2)Написать код для зеркального переворота массива (7,2,9,4) -> (4,9,2,7). - | |
| * массив может быть произвольной длинны. (При выполнении задания | |
| * использовать дополнительный массив нельзя)(1 час) | |
| */ | |
| package com.gmail.slartua; |
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
| /** | |
| * Hometask6_2 Lvl 1 | |
| * Concatenation of string with sum of two numbers. | |
| */ | |
| package com.gmail.slartua; | |
| public class ConcatenationMethod { | |
| 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
| /* | |
| * Домашняя работа 4 | |
| * Задание 3 Уровень 2 | |
| * Выведите на экран «песочные часы» максимальная ширина которых | |
| * считывается с клавиатуры (число нечетное). | |
| */ | |
| package com.gmail.slartua; | |
| 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
| /** | |
| * HT#7 lvl1 | |
| * 1 month ago up to today in msec | |
| */ | |
| package com.gmail.slartua; | |
| import java.util.Calendar; | |
| import java.util.Date; |
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
| /** | |
| * HT#8 lvl1 Console edit text | |
| */ | |
| package com.gmail.slartua; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.util.Scanner; |
OlderNewer