This file contains 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 tank; | |
public class Tanki { | |
public static void main(String[] args) { | |
} | |
public static class A{ | |
B []b; | |
public A(int n){ |
This file contains 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 tank; | |
import tank.Tanki.Tank; | |
public class Launcher { | |
public static void main(String[] args) { | |
Tank[] tank= new Tank[5]; | |
tank[0]= new Tank("red",5,60); |
This file contains 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 tank; | |
public class Tanki { | |
public static void main(String [] args){ | |
Tank tank= new Tank("red",4,50); | |
printTankInfo(tank); | |
} | |
public static class Tank{ | |
String color; |
This file contains 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 line; | |
public class Geometry1 { | |
public static void main(String[] args) { | |
Triangl triangl = new Triangl(); | |
System.out.println(triangl.colorABC); | |
} | |
public static class Triangl{ |
This file contains 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 line; | |
public class Geometry { | |
public static void main(String[] args) { | |
Triangl triangl = new Triangl(); | |
System.out.println(triangl.colorABC); | |
} | |
public static class Triangl{ |
This file contains 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 tank; | |
public class Tanki { | |
public static void main(String [] args){ | |
Tank tank = new Tank(); | |
parametrTank(tank); | |
printTankInfo(tank); | |
} | |
public static class Tank{ | |
String color; |
This file contains 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 GreatingService { | |
public static void main(String[] args) { | |
if (args.length >0) { | |
System.out.println("Hello, " + args[0]); 5 } else { | |
System.out.println("Hello"); | |
} | |
} |
This file contains 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 GreatingService { | |
2 public static void main(String[] args) { | |
3 if (args.length >0) { | |
4 System.out.println("Hello, " + args[0]); | |
5 } else { | |
6 System.out.println("Hello"); | |
7 } | |
8 } |
This file contains 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 tank; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.util.concurrent.TimeUnit; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
This file contains 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
Enter file contents here | |
package tank; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.util.concurrent.TimeUnit; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
NewerOlder