View App.java
class App { | |
public static void main(String[] args) | |
{ | |
} | |
} | |
class ProblemX { |
View App.java
package com.argela.sampleapp.app; | |
/* | |
Program: Write all occurences, how many each character in given string? | |
Sample Case | |
--- | |
Input : "Araba" | |
Output: A:1 |
View gist:4f7ba7e02904e6b701e61e35f5db7789
javac -classpath libs/json-20180813.jar App.java | |
javac -cp libs/json-20180813.jar App.java |
View App.java
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) | |
{ |
View CharacterOccurences.java
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)) |
View mongodriver.java
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")); |
View Terminal.java
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) | |
{ |
View örnek.java
package org.csystem.builderapp.app; | |
import java.util.Iterator; | |
public class App { | |
public static void main(String[] args) | |
{ | |
System.out.println("hello"); | |
View App.java
package app; | |
import org.json.JSONObject; | |
public class App { | |
public static void main(String[] args) | |
{ | |
System.out.println("hello"); |