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
{ | |
"workbench.colorTheme": "Visual Studio Dark", | |
"editor.wordWrap": "on", | |
"liveServer.settings.donotShowInfoMsg": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.indentSize": "tabSize", | |
"editor.tabSize": 2, | |
"redhat.telemetry.enabled": true, | |
"prettier.requireConfig": true, | |
"window.zoomLevel": 1, |
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
// private methods with constructor functions without ES6 classes | |
const Student = (function() { | |
function privateMethod() { | |
console.log('Private method...'); | |
} | |
return function(name, age) { | |
this.name = name; | |
this.age = age; | |
privateMethod(); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<p>Diziyi fill etmek için değer gir:</p> |
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 dev.milikkan.cor; | |
public class AABulucu extends NotHarfiBulucu { | |
public AABulucu(NotHarfiBulucu bulucu) { | |
super(bulucu); | |
} | |
public void notHarfiBul(double not) { | |
if (not > 90) { |
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
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Optional; | |
public class Notlar { | |
public static void main(String[] args) { | |
Map<Integer, String> notHarfleri = new HashMap<>(); | |
notHarfleri.put(90, "AA ile dersi geçtiniz."); | |
notHarfleri.put(85, "BA ile dersi geçtiniz."); |
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
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
public class CountDuplicates { | |
// using classic for loop and Map.merge method | |
private static Map<Character, Integer> countChars(String input) { | |
var result = new HashMap<Character, Integer>(); |