Skip to content

Instantly share code, notes, and snippets.

View Sergaav's full-sized avatar

Andrii Serha Sergaav

View GitHub Profile
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;
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");
@Sergaav
Sergaav / Foursquare.java
Created April 23, 2015 13:52
Наследование фигуры
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) {
<?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">
<?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">