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
public class Autoboxing1 { | |
public static void main(String[] args) { | |
Integer a = new Integer(5); | |
int b = 10; | |
Autoboxing1 ab = new Autoboxing1(); | |
System.out.println(ab.sum(a.intValue(), b)); | |
} |
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 lesson4.game; | |
import lesson4.game.ActionField; | |
import lesson4.game.BattleField; | |
import lesson4.game.Bullet; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class Tank1 { |
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 lesson4.game; | |
import javax.swing.*; | |
import java.awt.*; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class ActionField 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 lesson4.game; | |
public class BT7 extends Tank1 { | |
private int speed; | |
public BT7() { | |
} | |
public BT7(ActionField actionField, BattleField battleField, int x, int y, Direction direction) { |
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 lesson4.shop; | |
public class Buyer { | |
private String name; | |
private String email; | |
private int phoneNumber; | |
public Buyer() { |
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 lesson4.game; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Random; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class ActionField 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 lesson4.game; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Random; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class ActionField 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 lesson4.game; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Random; | |
/** | |
* Created by anna on 27.10.15. | |
*/ | |
public class ActionField 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 lesson6; | |
public class ExceptionFrame9 { | |
public static void main(String[] args) { | |
ExceptionFrame9 ex = new ExceptionFrame9(); | |
System.out.println(ex.doDivision(2, 0)); | |
System.out.println(ex.doDivision(3, 8)); |
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 lesson6.shapes; | |
import java.awt.*; | |
public class Circle extends Shape { | |
public Circle() { | |
} | |
@Override |