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.task.task05.task0507; | |
/* | |
Среднее арифметическое | |
*/ | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
public class ArithmeticalMean { | |
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.task.task05.task0520; | |
/* | |
Создать класс прямоугольник (Rectangle) | |
*/ | |
public class Rectangle { | |
//напишите тут ваш код | |
int top, left, width, height; |
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.task.task05.task0528; | |
/* | |
Вывести на экран сегодняшнюю дату | |
*/ | |
import java.text.SimpleDateFormat; | |
import java.time.LocalDateTime; | |
import java.time.ZonedDateTime; | |
import java.time.format.DateTimeFormatter; |
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.task.task05.task0529; | |
/* | |
Консоль-копилка | |
*/ | |
import java.io.*; | |
public class StopWordSum { | |
public static void main(String[] args) throws Exception {//напишите тут ваш код | |
BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); |
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.task.task06.task0606; | |
import java.io.*; | |
/* | |
Чётные и нечётные циферки | |
*/ | |
public class AmountDifferentDigits { |
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.task.task07.task0701; | |
import java.io.*; | |
/* | |
Массивный максимум | |
*/ | |
public class MaxNumberOfArray { | |
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.task.task07.task0705; | |
import java.io.*; | |
import java.util.Arrays; | |
public class CopyPartsOfRangesArrays { | |
public static void main(String[] args) throws Exception { | |
BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); | |
int[] arr = new int[20]; | |
int[] small1 = new int[10], small2 = new int[10]; |
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.task.task07.task0708; | |
import java.io.*; | |
import java.util.ArrayList; | |
/* | |
Самая длинная строка | |
*/ | |
public class LongestString { |
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.task.task07.task0724; | |
/* | |
Семейная перепись | |
*/ | |
public class Solution { | |
public static void main(String[] args) {//напишите тут ваш код | |
Human babusya1 = new Human("Anna", false, 71);//the creation Object "first grandmother" | |
Human babusya2 = new Human("Lisa", false, 83); | |
Human ded1 = new Human("Ivan", true, 76); | |
Human ded2 = new Human("Mikel", true, 80); |
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.task.task08.task0812; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
/* | |
Cамая длинная последовательность | |
*/ | |
public class LongestSequence { |