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 ru.mail.exe.brother; | |
| public class Geron1 { | |
| public static void main(String[] args) { | |
| // TODO Auto-generated method stub | |
| int a=5; | |
| int b=6; | |
| int c=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 ru.mail.exe.brother; | |
| import java.util.Scanner; | |
| public class Second { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int n; |
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 ru.mail.exe.brother; | |
| import java.util.Scanner; | |
| public class TaskTwo { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| System.out.println("Input lenght:"); | |
| int s = sc.nextInt(); |
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 ru.mail.exe.brother; | |
| public class TaskThree { | |
| public static void main(String[] args) { | |
| int a = 7; | |
| int b = 9; | |
| String rectangle = drawRectangle(a, b); | |
| } |
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 ru.mail.exe.brother; | |
| import java.util.Scanner; | |
| public class TaskThree { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int binaryNumber = 0; |
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 ru.mail.exe.brother; | |
| public class MainTriangle { | |
| public static void main(String[] args) { | |
| Triangle triangleOne = new Triangle(); | |
| triangleOne.setA(4.3); | |
| triangleOne.setB(3.2); | |
| triangleOne.setC(5.1); |
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 ru.mail.exe.brother; | |
| public class TooMuchStudentsException extends Exception { | |
| public String showText() { | |
| return ("You put more than 10 students!"); | |
| } | |
| } |
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 ru.mail.exe.brother; | |
| public class TooMuchStudentsExeption extends Exception { | |
| public String showText() { | |
| return ("You put more than 10 students!"); | |
| } | |
| } |
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 ru.mail.exe.brother; | |
| import java.io.BufferedReader; | |
| import java.io.BufferedWriter; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileReader; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| public class AdditWords { |
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 ru.mail.exe.brother; | |
| import java.math.BigInteger; | |
| public class ArraySumThread implements Runnable { | |
| protected int pOne; | |
| protected int pTwo; | |
| protected int[] arr; |
OlderNewer