Skip to content

Instantly share code, notes, and snippets.

View Yur-ok's full-sized avatar

Yuriy Bachevskiy Yur-ok

  • WorldWideWeb
View GitHub Profile
package Lesson2.KeyPoint4;
/**
* Created by Юрий on 14.12.2015.
*/
public class PrintNumbers {
public static void main(String[] args) {
printNumbers(5,7);
printNumbers(-2,4);
/*
* Copyright (c) 2014 kademika.com
*/
package Lesson2.KeyPoint4;
import javax.swing.*;
import java.awt.*;
public class BattleFieldTemplate_MoveRandomMethod extends JPanel {
/*
* Copyright (c) 2014 kademika.com
*/
package Lesson2.KeyPoint4;
import javax.swing.*;
import java.awt.*;
public class BattleFieldTemplate_MoveToQuadrant extends JPanel {
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];
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};
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};
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};
package Lesson3.KeyPoint2;
import java.util.Arrays;
/**
* Created by Юрий on 18.12.2015.
*/
public class DoubleAvarage {
public static void main(String[] args) {
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};
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};