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 IgorDolgov.CalcRA0099.cat; | |
| public class Bowl { | |
| public int voda = 5; | |
| public int drink () { | |
| return voda--; | |
| } | |
| } |
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 IgorDolgov; | |
| public class MainXOX { | |
| static boolean gameFinished = false; | |
| static final char[][] FIELD = new char[][]{ | |
| {'.', '.', '.'}, | |
| {'.', '.', '.'}, | |
| {'.', '.', '.'} | |
| }; |
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 IgorDolgov.ippodrom; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| import java.util.Scanner; | |
| public class Totalizator { | |
| //Метод сортировки массива от max к min |
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 IgorDolgov.ippodrom; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| import java.util.Scanner; | |
| public class Totalizator { | |
| private static int odinar2[] = new int[2]; |
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 IgorDolgov.ippodrom; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| import java.util.Scanner; | |
| public class Totalizator { | |
| private static int odinar2[] = new int[2]; |
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 IgorDolgov.seabattle; | |
| import java.util.Scanner; | |
| public class SeaBattle003 { | |
| public static void main(String[] args) { | |
| int size = 10; | |
| char cells[] = new char[size]; | |
| for (int i = 0; i < cells.length; i++) { | |
| cells[i] = '.'; |
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 IgorDolgov.seabattle; | |
| import java.util.Scanner; | |
| import static IgorDolgov.seabattle.SeaBattle.shoot; | |
| public class SeaBattle { | |
| static int shoot; | |
| 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 IgorDolgov.seabattle; | |
| import java.util.Scanner; | |
| public class SeaBattle { | |
| public static void main(String[] args) { | |
| doGame(); | |
| } |
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 IgorDolgov.ex001; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Cat.showCount(); | |
| Cat masha = new Cat("Маша"); | |
| Cat misha = new Cat("Миша"); | |
| Cat gala = new Cat("Галя"); | |
| Cat kate = new Cat("Kate"); | |
| kate.showCount(); |
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 IgorDolgov; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.util.Arrays; | |
| import java.util.Scanner; | |
| public class TableA { |