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
| using System; | |
| namespace ArrayObject | |
| { | |
| public static class ArrayTasks | |
| { | |
| public static void ChangeElementsInArray(int[] nums) | |
| { | |
| for (int i = 0; i < nums.Length / 2; i++) | |
| { |
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 com.gmail.slartua; | |
| public class Data implements Comparable<Object>{ | |
| private int number; | |
| private String name; | |
| public Data(int number, String name) { | |
| this.number = number; | |
| this.name = name; | |
| } |
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
| public static boolean checkReposition(String one, String two){ | |
| List<Character> charListOne = new ArrayList<Character>(); | |
| for(char c : one.toCharArray()){ | |
| charListOne.add(c); | |
| } | |
| List<Character> charListTwo = new ArrayList<Character>(); | |
| for(char c : two.toCharArray()){ | |
| charListTwo.add(c); |
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; |
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
| /* | |
| * Домашняя работа 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
| /** | |
| * 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
| /* | |
| * Домашняя работа 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
| /* | |
| * Домашняя работа 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
| /* | |
| * Домашняя работа 4 | |
| * Задание 2 Уровень 1 | |
| * Вычислить с помощью цикла факториал числа - n введенного с | |
| * клавиатуры (4<n<16). | |
| */ | |
| package com.gmail.slartua; | |
| import java.util.Scanner; |
NewerOlder