Skip to content

Instantly share code, notes, and snippets.

View Yur-ok's full-sized avatar

Yuriy Bachevskiy Yur-ok

  • WorldWideWeb
View GitHub Profile
@Yur-ok
Yur-ok / StringConcatination.java
Created December 5, 2015 19:20
Use knowledge to change the world
package Lesson1_frame5;
/**
* Created by Юрий on 06.12.2015.
*/
public class StringConcatination {
public static void main(String[] args) {
String s = "Education is the most powerful weapon which you can use to change the world.";
String t = "An investment in knowledge pays the best interest.";
package Lesson2.KeyPoin1;
/**
* Created by Юрий on 08.12.2015.
*/
public class HelloMethod {
public static void main(String[] args) {
hello("Yurok");
hello(777);
package Lesson2.KeyPoin1;
/**
* Created by Юрий on 08.12.2015.
*/
public class SumMethod {
public static void main(String[] args) {
sum(5,2.4);
}
package Lesson2.KeyPoin1;
/**
* Created by Юрий on 08.12.2015.
*/
public class SquareMethod {
public static void main(String[] args) {
square(4.0);
square(5);
package Lesson2.KeyPoin1;
/**
* Created by Юрий on 08.12.2015.
*/
public class SquareOverriding {
public static void main(String[] args) {
square(5);
square(3.0);
package Lesson2.KeyPoin1;
/**
* Created by Юрий on 08.12.2015.
*/
public class SquareOverriding {
public static void main(String[] args) {
System.out.println(square(5));
System.out.println(square(3.0));
package Lesson2.KeyPoint2;
/**
* Created by Юрий on 08.12.2015.
*/
public class OldEnough {
public static void main(String[] args) {
oldEnough(30);
oldEnough(21);
oldEnough(-21);
package Lesson2.KeyPoint2;
/**
* Created by Юрий on 08.12.2015.
*/
public class MinOfThreeMethod {
public static void main(String[] args) {
System.out.println(min(10, 15, 10));
}
/*
* Copyright (c) 2014 kademika.com
*/
package Lesson2.KeyPoint3;
import javax.swing.*;
import java.awt.*;
public class BattleFieldTemplate_MoveMethod extends JPanel {
/*
* Copyright (c) 2014 kademika.com
*/
package Lesson2.KeyPoint4;
import javax.swing.*;
import java.awt.*;
public class BattleFieldTemplate_StartMethod extends JPanel {