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 birds; | |
import java.util.Arrays; | |
public class Birds { | |
static int size=1; | |
static int counterEmtyLine=size; | |
static String birds[][]=new String[size][]; |
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 masivDuos; | |
public class Teacher { | |
public static void main(String[] args) { | |
String[][]ivanov={{"Ivanov Ivan"}, | |
{"Bio-60 hours ","1,2,3,4,2,4"}, | |
{"Geo-65 hours ","5,4,3,5,4"}, | |
{"Math-120 hours","5,4,3,5,4,5"}}; |
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 masivDuos; | |
import java.util.Arrays; | |
public class PrintArray { | |
public static void main(String[] args) { | |
String[][]data={{}, | |
{"Oleg"}, |
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 test; | |
public class Factorial { | |
public static void main(String[] args) { | |
System.out.println(factorial(-1)); | |
System.out.println(factorial(0)); | |
System.out.println(factorial(1)); | |
System.out.println(factorial(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 test; | |
public class Invers { | |
public static void main(String[] args) { | |
String str="abcd efgh iklmnop"; | |
String str1=null; | |
String str2="a"; | |
String str3=" "; |
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 test; | |
import java.util.Arrays; | |
public class Copy { | |
public static void main(String[] args) { | |
int []src={1,2,3}; | |
int []dest={0,7,9,8,34}; | |
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 test; | |
import java.util.Arrays; | |
public class Copy { | |
public static void main(String[] args) { | |
int []src={1,2,3}; | |
int []dest={0,7,9,8,34}; | |
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 test; | |
public class Finde { | |
public static void main(String[] args) { | |
double[] numbers={1.0,7.0,9.0}; | |
double[] numbers1={}; | |
double[] numbers2={-1.0,7.0,9.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 test; | |
public class Finde { | |
public static void main(String[] args) { | |
double[] numbers={1.0,7.0,9.0}; | |
double[] numbers1={}; | |
double[] numbers2={-1.0,7.0,9.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 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; |