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 class Main { | |
| public static void main(String[] args) { | |
| System.out.println("Arguments count: " + args.length); | |
| for (int i = 0; i < args.length; i++) { | |
| String type = args[i].matches("[+-]?\\d+") ? "Integer" : "String"; | |
| System.out.println(args[i] + " <" + type + ">"); | |
| } | |
| } | |
| } |
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
| # remove | |
| /usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist | |
| # restore | |
| /usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist |
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 com.company; | |
| /** | |
| * Created by addicted on 27.02.16. | |
| */ | |
| public class Weather { | |
| private double windDirection; | |
| private double windSpeed; | |
| private double temperature; | |
| private PrecipitationTypes precipitations; |
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 com.company; | |
| /** | |
| * Created by addicted on 27.02.16. | |
| */ | |
| public class Contact { | |
| private String name; | |
| private String nickname; | |
| private String email; | |
| private String phone; |
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 com.company; | |
| /** | |
| * Created by addicted on 27.02.16. | |
| */ | |
| public class Circle { | |
| private double radius; | |
| public double getCircumference() { | |
| return 2 * Math.PI * radius; |
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 com.company; | |
| /** | |
| * Created by addicted on 27.02.16. | |
| */ | |
| public class Circle { | |
| private double radius; | |
| public double getCircumference() { | |
| return 2 * Math.PI * radius; |
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 com.company; | |
| /** | |
| * Created by addicted on 27.02.16. | |
| */ | |
| public class Contact { | |
| private String name; | |
| private String nickname; | |
| private String email; | |
| private String phone; |
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 com.company; | |
| /** | |
| * Created by addicted on 27.02.16. | |
| */ | |
| public class Weather { | |
| private double windDirection; | |
| private double windSpeed; | |
| private double temperature; | |
| private PrecipitationTypes precipitations; |
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 com.company; | |
| public class Main { | |
| private static int iterations = 100000; | |
| private static void testString() { | |
| String str = ""; | |
| for (int i = 0; i < Main.iterations; i++) { | |
| str += "x"; | |
| } |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/HG6wiAazrTBSPE2vBZzrQORJm+gHqFwl1sVgdITusnrTzXpaFI+AABZLqYRaR5ZoSLMm7OsUoFonJxHJ0lebtmdYr8DzIMuDDMkArLRr1dJusm/nSvZdH2FuVLZDm/47tFIKmMGZsaarNO3TdcYIK0y0/zOXy7VfXKGlDrzCkB7SwJJ6/3G6XZvSa0WGtwCUXSF8TOLak7neoquymtl9wPNfaWHWCbSlp8dZwMgZA6p7hm2RwOoY+cqn0nGA1aOKq/wjaWyu+TBYJakpV8E0LOUmw051mxbSygxz7Ksoumt2Dj/He1G71GmNSEwcCah4ap5uaemxJEyX0iHKbiwT addicted@MiniMac.local |