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 PrintArray { | |
| public static void main(String[] args) { | |
| int [] data={1,10,5,7,6}; | |
| int [] data1={0}; | |
| int [] data2={}; | |
| int [] data3={0,0,15,25,16}; |
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 ElementSum { | |
| public static void main(String[] args) { | |
| int [] data={1,10,5,7,6}; | |
| int [] data1={0,0}; | |
| int [] data2={}; | |
| int [] data3={0,0,15,25,16}; |
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 Arifmetic { | |
| public static void main(String[] args) { | |
| int [] data={1,10,5,7,6}; | |
| int [] data1={0}; | |
| int [] data2={}; | |
| int [] data3={0,0,15,25,16}; |
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 Swap { | |
| public static void main(String[] args) { | |
| int [] data={1,10,5,7,6}; | |
| int [] data1={0}; | |
| int [] data2={}; | |
| int [] data3={0,0,15,25,16}; |
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 Swap { | |
| public static void main(String[] args) { | |
| int [] data={1,10,5,7,6}; | |
| int [] data1={0}; | |
| int [] data2={}; | |
| int [] data3={0,0,15,25,16}; |
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 test; | |
| public class Lesson2 { | |
| public static void main(String[] args) { | |
| System.out.println(getFirstCharacterOfWord(null,2)); | |
| System.out.println(getFirstCharacterOfWord(" ",2)); | |
| System.out.println(getFirstCharacterOfWord("ahjkji",1)); | |
| System.out.println(getFirstCharacterOfWord("df jdbj cbfhd efhfbwh wehbfh khbdsh dcbhb",0)); | |
| System.out.println(getFirstCharacterOfWord("df jdbj cbfhd efhfbwh wehbfh khbdsh dcbhb",5)); |
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={1,10,5,7,6}; |
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]; | |
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; | |
| 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)); |