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 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 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 metod; | |
| public class Quadrant { | |
| public static void main(String[] args) { | |
| System.out.println(getQuadrant(0,60)); | |
| System.out.println(getQuadrant(0,64)); | |
| System.out.println(getQuadrant(68,96)); | |
| System.out.println(getQuadrant(512,65)); |
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 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 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 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 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 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 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 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 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 masiv; | |
| import java.util.Arrays; | |
| public class Union { | |
| public static void main(String[] args) { | |
| int []data1={1,2,0,0,9}; | |
| int []data2={0,8,7}; | |
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 masiv; | |
| public class Population { | |
| public static void main(String[] args) { | |
| String [][]data={{"China","Peking","1354040000"},{"India","NewDelhi","1210569573"}, | |
| {"USA","WashingtonD.C.","316305000"},{"Indonesia","Jakarta","237641326"}, | |
| {"Brazil","Brasilia","193946886"},{"Pakistan","Islamabad","183748060"}}; | |
| System.out.println(getPopulation(data)); |
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 masiv; | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| public class Sort { | |
| public static void main(String[] args) { | |
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 masiv; | |
| import java.util.Arrays; | |
| public class Sort { | |
| public static void main(String[] args) { | |
| int[] data=new int[10000]; | |