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 substring; | |
public class Substring { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
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 task1; | |
import java.util.Scanner; | |
/* | |
* Task 1 | |
* create method displayMaximum(), displayMaximum() and displayAverage() | |
* */ | |
public class Lesson3IfStatement { |
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 tanks; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
public class BattleFieldTemplate extends 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
/* | |
* Copyright (c) 2014 kademika.com | |
*/ | |
package tanks; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
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
package logic; | |
public class Continue { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
int i=1; |
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 logic; | |
public class Break { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
int i=1; |
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 tanks; | |
public class printQuadrant { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
printCoordinates("a", "2"); |
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 tanks; | |
public class GetQuadrant { | |
public static void main(String[] args) { | |
System.out.println(getQuadrant("a", "1")); | |
System.out.println(getQuadrant("a", "2")); | |
System.out.println(getQuadrant("b", "2")); |
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 logic; | |
public class IfMonth { | |
public static void main(String[] args) { | |
System.out.println(isSpring(4)); | |
System.out.println(isSpring(9)); | |
System.out.println(isSpring(12)); | |
System.out.println(isSpring(-1)); |
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 logic; | |
public class MinElseIf { | |
public static void main(String[] args) { | |
System.out.println(min(-19,5,-9)); | |
} | |
static int min(int a, int b, int c){ | |
if (a<b){ |