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 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."; |
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 Lesson2.KeyPoin1; | |
/** | |
* Created by Юрий on 08.12.2015. | |
*/ | |
public class HelloMethod { | |
public static void main(String[] args) { | |
hello("Yurok"); | |
hello(777); |
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 Lesson2.KeyPoin1; | |
/** | |
* Created by Юрий on 08.12.2015. | |
*/ | |
public class SumMethod { | |
public static void main(String[] args) { | |
sum(5,2.4); | |
} |
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 Lesson2.KeyPoin1; | |
/** | |
* Created by Юрий on 08.12.2015. | |
*/ | |
public class SquareMethod { | |
public static void main(String[] args) { | |
square(4.0); | |
square(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 Lesson2.KeyPoin1; | |
/** | |
* Created by Юрий on 08.12.2015. | |
*/ | |
public class SquareOverriding { | |
public static void main(String[] args) { | |
square(5); | |
square(3.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 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)); |
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 Lesson2.KeyPoint2; | |
/** | |
* Created by Юрий on 08.12.2015. | |
*/ | |
public class OldEnough { | |
public static void main(String[] args) { | |
oldEnough(30); | |
oldEnough(21); | |
oldEnough(-21); |
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 Lesson2.KeyPoint2; | |
/** | |
* Created by Юрий on 08.12.2015. | |
*/ | |
public class MinOfThreeMethod { | |
public static void main(String[] args) { | |
System.out.println(min(10, 15, 10)); | |
} |
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.KeyPoint3; | |
import javax.swing.*; | |
import java.awt.*; | |
public class BattleFieldTemplate_MoveMethod extends JPanel { |
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_StartMethod extends JPanel { |