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.kudr641.example1; | |
import java.util.Scanner; | |
public class Board { | |
private Shape[] arrayShape = new Shape[4]; | |
private Scanner scanner = new Scanner(System.in); | |
public void action(){ | |
System.out.println("Select an action"); |
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.kudr641.example4; | |
import java.util.ArrayList; | |
public class Network { | |
private ArrayList<String> registeredNumbers = new ArrayList<String>(); | |
public ArrayList<String> getRegisteredNumbers() { | |
return registeredNumbers; |
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.kudr641.example3; | |
import java.util.Scanner; | |
public class ActionWithTheVector { | |
public Vector3d[] createArrayVectors(){ | |
Scanner scanner = new Scanner(System.in); | |
System.out.print("How many vectors needed?"); |
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.kudr641.example2; | |
import java.util.Scanner; | |
public class ActionWithTheTriangle { | |
public void printResult(Triangle[] arrayTriangle){ | |
for(int i = 0; i < arrayTriangle.length; i += 1){ | |
if(arrayTriangle[i].getSideOne() + arrayTriangle[i].getSideTwo() <= arrayTriangle[i].getSideThree() || | |
arrayTriangle[i].getSideOne() + arrayTriangle[i].getSideThree() <= arrayTriangle[i].getSideTwo() || |
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.kudr641.example1; | |
public class Cat { | |
private int age; | |
private int weight; | |
private String color; | |
private String name; | |
public Cat(int age, int weight, String color, String name){ | |
this.age = age; |
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.kudr641; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
public class Lessons7Example1Lavel2 { |
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.kudr641; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.Scanner; | |
public class Lessons7Example1 { | |
public static void main(String[] args) { |
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.kudr641; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.Scanner; | |
public class Lessons6Example1Lavel2 { |
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.kudr641; | |
import java.util.Calendar; | |
import java.util.Date; | |
public class Lessons6Example1 { | |
public static void main(String[] args) { | |
Date nowDate = new Date(); |
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.kudr641; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
public class Lessons5Example1Level2 { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); |
NewerOlder