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 calc; | |
| import java.io.*; | |
| import java.util.*; | |
| public class Calc { | |
| public static void main(String[] args) throws Exception { | |
| BufferedReader d = new BufferedReader(new InputStreamReader(System.in)); | |
| String sIn; |
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 test; | |
| import java.util.*; | |
| public class MyArr { | |
| public static void main(String[] args) { | |
| int[] iArr = {2,3,6,1,3,4,7,9,7}; | |
| Arrays.sort(iArr); | |
| System.out.println(Arrays.toString(iArr)); | |
| } |
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 test; | |
| import java.io.BufferedReader; | |
| import java.util.*; | |
| import java.io.*; | |
| public class MyArr { | |
| public static void main(String[] args) throws Exception { | |
| int[] iaMain = null; |
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 test; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.util.Arrays; | |
| public class ArrReplEl { | |
| public static void main(String[] args) throws Exception { | |
| int[] iaMain = null; | |
| int[] iaTmp; |
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 test; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.util.Arrays; | |
| public class ArraySplit { | |
| public static void main(String[] args) throws Exception { | |
| int[] iaMain = null; | |
| int[] iaTmp; |
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 test; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.util.Arrays; | |
| public class ArraySplit { | |
| public static void main(String[] args) throws Exception { | |
| int[] iaMain = null; | |
| int[] iaTmp; |
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 test; | |
| import java.util.Scanner; | |
| public class PlusZerro { | |
| // Размер игровово поля | |
| private static final byte bPoleSize = 3; | |
| // Задаем поле как (!)одномерный массив bPoleSize*bPoleSize (неожиданно?) | |
| private static String[] pole = new String[bPoleSize * bPoleSize]; |
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 methods; | |
| public class GetSize { | |
| public static void main(String[] args) { | |
| Byte[] b = {1}; | |
| Short[] s = {2, 2}; | |
| Integer[] i = {3, 3, 3}; | |
| Long[] l = {4l, 4l, 4l, 4l}; | |
| Float[] f = {5f, 5f, 5f, 5f, 5f}; | |
| Double[] d = {6d, 6d, 6d, 6d, 6d, 6d}; |
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 cycles; | |
| import java.util.Arrays; | |
| public class ReverseArray { | |
| public static void main(String[] args) { | |
| int[] a = {1,2,3,4,5}; | |
| int[] b = {1,2,3,4,5,6}; | |
| System.out.println(Arrays.toString(reverse(a))); |
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 cycles; | |
| import java.util.Arrays; | |
| public class Reduce { | |
| public static void main(String[] args) { | |
| int[] a = {1, 2, 3, 4, 5, 6, 7, 8, 9}; | |
| while (a.length > 3) { | |
| a = reduce(a); | |
| } |
OlderNewer