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
class App { | |
public static void main(String[] args) | |
{ | |
} | |
} | |
class ProblemX { |
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.argela.sampleapp.app; | |
/* | |
Program: Write all occurences, how many each character in given string? | |
Sample Case | |
--- | |
Input : "Araba" | |
Output: A:1 |
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
javac -classpath libs/json-20180813.jar App.java | |
javac -cp libs/json-20180813.jar App.java |
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 App { | |
public static void main(String[] args) | |
{ | |
Utils.run(new java.util.HashMap<Character, Integer>()); | |
} | |
} | |
class Utils { | |
public static java.util.HashMap<Character, Integer> run(java.util.HashMap<Character, Integer> hm) | |
{ |
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
class StringUtil { | |
// "baba" a:2, b:2 tane var gibi mesela. | |
public static HashMap<Character, Integer> countOccurencesWithHashMapWay(String str) | |
{ | |
char [] strArray = str.toCharArray(); | |
HashMap<Character, Integer> hm = new HashMap<>(); | |
for (char ch : strArray) | |
if (hm.containsKey(ch)) |
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
MongoClientURI uri = new MongoClientURI( | |
"mongodb+srv://tugberk:<pass>@couples-list-chvsn.mongodb.net/test?retryWrites=true"); | |
MongoClient mongoClient = new MongoClient(uri); | |
MongoDatabase database = mongoClient.getDatabase("wishdb"); | |
for (var document : database.getCollection("wishs").find()) | |
System.out.println(document.get("todo")); |
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 org.csystem.cmdpromptapp.app; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
import java.util.function.Consumer; | |
public class Terminal { | |
public static void main(String[] args) | |
{ |
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 org.csystem.builderapp.app; | |
import java.util.Iterator; | |
public class App { | |
public static void main(String[] args) | |
{ | |
System.out.println("hello"); | |
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 app; | |
import org.json.JSONObject; | |
public class App { | |
public static void main(String[] args) | |
{ | |
System.out.println("hello"); |