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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="JAVA_MODULE" version="4"> | |
<component name="NewModuleRootManager" inherit-compiler-output="true"> | |
<exclude-output /> | |
<content url="file://$MODULE_DIR$"> | |
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | |
</content> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
<orderEntry type="module-library" scope="TEST"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="JAVA_MODULE" version="4"> | |
<component name="NewModuleRootManager" inherit-compiler-output="true"> | |
<exclude-output /> | |
<content url="file://$MODULE_DIR$"> | |
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | |
</content> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
<orderEntry type="module-library" scope="TEST"> |
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
public class Foursquare extends Shape { | |
private Point A; | |
private Point B; | |
private Point C; | |
private Point D; | |
public Foursquare(Point a, Point b, Point c, Point d) { |
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 com.gmail.sergaav.dz7_1; | |
import java.io.*; | |
import java.util.Scanner; | |
public class dz7_1 { | |
public static void main(String[] args) throws FileNotFoundException { | |
File ff = new File("file.txt"); |
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 com.gmail.sergaav.dz4_1; | |
public class dz4_1 { | |
public static void main(String[] args) { | |
int[][] mas = { { 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0 }, | |
{ 0, 0, 0, 0, 0, 0 }, { 1, 1, 1, 1, 1, 1 }, | |
{ 1, 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1, 1 }, }; | |
System.out.println("Заданный массив: \n "); | |
for (int i = 0; i < mas.length; i++) { |
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 com.gmail.sergaav.dz4_2; | |
import java.util.Scanner; | |
import java.util.Random; | |
public class dz4_2 { | |
public static void main(String[] args) { | |
System.out.println("Input massive length: "); | |
Scanner sc = new Scanner(System.in); |
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 com.gmail.sergaav.dz4_3; | |
import java.util.Scanner; | |
import java.util.Arrays; | |
public class dz4_3 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("How much money do you have?"); | |
String n; |
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 com.gmail.sergaav.dz3_1; | |
import java.util.Scanner; | |
public class dz3_1 { | |
public static void main(String[] args) { | |
double a; | |
double b; | |
double c; |
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 com.gmail.sergaav.dz3_2; | |
import java.util.Scanner; | |
public class dz3_2 { | |
public static void main(String[] args) { | |
double x; | |
double y; | |
double r=4.0; | |
Scanner sc = new Scanner (System.in); |
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 com.gmail.sergaav.dz3_3; | |
import java.util.Scanner; | |
public class dz3_3 { | |
public static void main(String[] args) { | |
double x; | |
double y; |
NewerOlder