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 Lesson3.KeyPoint3; | |
import java.util.Arrays; | |
/** | |
* Created by Юрий on 19.12.2015. | |
*/ | |
public class SortUseSwap { | |
static int len; |
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 Lesson3.KeyPoint3; | |
import java.util.Arrays; | |
/** | |
* Created by Юрий on 19.12.2015. | |
*/ | |
public class SortUseSwap { | |
public static void main(String[] args) { | |
int[] arr = {10, 9, 8, 7, 6}; |
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 Lesson3.KeyPoint2; | |
import java.util.Arrays; | |
/** | |
* Created by Юрий on 18.12.2015. | |
*/ | |
public class VoidSwapSort { | |
public static void main(String[] args) { | |
int[] arr = {7, 2, 5, 4, 3, 6, 1}; |
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 Lesson3.KeyPoint2; | |
import java.util.Arrays; | |
/** | |
* Created by Юрий on 18.12.2015. | |
*/ | |
public class VoidSwap { | |
public static void main(String[] args) { | |
int[] arr = {1, 2, 3, 4, 5, 6, 7}; |
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 Lesson3.KeyPoint2; | |
import java.util.Arrays; | |
/** | |
* Created by Юрий on 18.12.2015. | |
*/ | |
public class DoubleAvarage { | |
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
package Lesson3.KeyPoint2; | |
/** | |
* Created by Юрий on 18.12.2015. | |
*/ | |
public class OddElementSum { | |
public static void main(String[] args) { | |
int[] arr = {1, 2, 3, 4, 5}; | |
int[] arr1 = {1, 2}; |
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 Lesson3.KeyPoint1; | |
import java.util.Arrays; | |
/** | |
* Created by Юрий on 16.12.2015. | |
*/ | |
public class PrintArray { | |
public static void main(String[] args) { | |
int[] arr1 = {1, 10, 5, 7, 6}; |
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 Lesson3.KeyPoint1; | |
import java.util.Arrays; | |
/** | |
* Created by Юрий on 16.12.2015. | |
*/ | |
public class SwapMethod { | |
public static void main(String[] args) { | |
int[] data = {1, 3, 4, 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 Lesson3.KeyPoint1; | |
/** | |
* Created by Юрий on 16.12.2015. | |
*/ | |
public class GetLastIndexOfArray { | |
public static void main(String[] args) { | |
int[] arr1 = {1, 10, 5, 7, 6}; | |
int[] arr2 = {0}; | |
int[] arr3 = new int[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
/* | |
* Copyright (c) 2014 kademika.com | |
*/ | |
package Lesson2.KeyPoint4; | |
import javax.swing.*; | |
import java.awt.*; | |
public class BattleFieldTemplate_MoveToQuadrant extends JPanel { |