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_MoveRandomMethod 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
package Lesson2.KeyPoint4; | |
/** | |
* Created by Юрий on 14.12.2015. | |
*/ | |
public class PrintNumbers { | |
public static void main(String[] args) { | |
printNumbers(5,7); | |
printNumbers(-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
/* | |
* Copyright (c) 2014 kademika.com | |
*/ | |
package Lesson2.KeyPoint4; | |
import javax.swing.*; | |
import java.awt.*; | |
public class BattleFieldTemplate_StartMethod 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.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
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
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.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.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 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 SumMethod { | |
public static void main(String[] args) { | |
sum(5,2.4); | |
} |