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 Java_OOP.HomeTasksBlinov; | |
| import java.util.Scanner; | |
| import static java.lang.Math.random; | |
| import static java.lang.Math.round; | |
| import static myPrograms.ShowMatrixMethod.showMatrix; | |
| /** | |
| * Created by Slava Provalov on 14.02.2016. |
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 Java_OOP.HomeTasksBlinov.Student; | |
| import java.util.ArrayList; | |
| import java.util.Calendar; | |
| import java.util.GregorianCalendar; | |
| import static java.lang.Math.random; | |
| import static java.lang.Math.round; | |
| /** |
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 HomeTasksTwoStars.Arrays; | |
| import java.util.Arrays; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class CyclicShifter { | |
| public static void main(String[] args) { | |
| int[] array = {1, 2, 3, 4, 5, 0}; |
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 HomeTasksTwoStars.Arrays; | |
| import static myPrograms.ShowMatrixMethod.showMatrix; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class SpiralCreator { | |
| public static void main(String[] args) { | |
| int rows = 5; |
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 HomeTasksTwoStars.Arrays; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class FrequentElemFinder { | |
| public static void main(String[] args) { | |
| int[] array = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 7, 7, 4, 4, 1, 8, 4, 7, 3, 6, 4, 1, 8, 9, 7}; | |
| findFrequentElem(array); | |
| System.out.println(findFrequentElem(array)); |
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 HomeTasksTwoStars.Arrays; | |
| import java.util.Arrays; | |
| import static java.lang.Math.pow; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class PascalTriangleCreator { |
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 HomeTasksTwoStars.Arrays; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class MatrixPacking { | |
| public static void main(String[] args) { | |
| int[][] sourceMatrix = { | |
| {1, 0, 3, 5}, |
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 HomeTasksTwoStars.Arrays; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class FrequentElemFinder { | |
| public static void main(String[] args) { | |
| int[] array = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 7, 7, 4, 4, 1, 8, 4, 7, 3, 6, 4, 1, 8, 9, 7}; | |
| findFrequentElem(array); | |
| System.out.println(findFrequentElem(array)); |
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 HomeTasksTwoStars.Conditions; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class RhombusPrinter { | |
| public static void main(String[] args) { | |
| int size = 9; | |
| printRhombus(size); |
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 HomeTasksTwoStars.Conditions; | |
| /** | |
| * Created by Slava Provalov on 29.12.2015. | |
| */ | |
| public class RhombusPrinter { | |
| public static void main(String[] args) { | |
| int size = 9; | |
| printRhombus(size); |
NewerOlder