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
*.iml | |
.gradle | |
/local.properties | |
/.idea/caches | |
/.idea/libraries | |
/.idea/modules.xml | |
/.idea/workspace.xml | |
/.idea/navEditor.xml | |
/.idea/assetWizardSettings.xml | |
.DS_Store |
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 Test_4; | |
public class Test_4 { | |
private String code; | |
private String name; | |
private String continent; | |
private String region; | |
public Test_4(String code, String name, String continent,String region) | |
{ | |
this.code=code; |
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 Test_1; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
public class Test_3 { | |
//diğer adı DbHelper olarak anılır. | |
private static String userName="root"; | |
private static String password="Ab123456"; |
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 Test_1; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
public class Test_2 { | |
static String userName="root"; | |
static String password="As123456"; | |
static String dbUrl="jdbc:mysql://localhost:3306/world"; |
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 Test_1; | |
import Test_4.Test_4; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.ArrayList; |
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 com.company; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
public class Test_2 { | |
static String userName="root"; | |
static String password="As123456"; | |
static String dbUrl="jdbc:mysql://localhost:3306/world"; |
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 com.company; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
public class Test_3 { | |
//diğer adı DbHelper olarak anılır. | |
private static String userName="root"; | |
private static String password="Ab123456"; |
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 com.company; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
public class Test_2 { | |
static String userName="root"; | |
static String password="Ab123456"; | |
static String dbUrl="jdbc:mysql://localhost:3306/world"; |
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 thread; | |
public class Main { | |
public static void main(String[] args) { | |
/* | |
Treading : | |
multithread nedir? uygulamalar bir çizgi gibi düşünürsek; bir operasyon çağırdık. akabinde başka bir şey çağırdık. | |
5 operasyon çağırdğımızı düşünnelim. arka arkaya dizilen araçlar gibi düşünelim. uygulama yaşam döngüsü başlar ve biter. | |
bir yaşam döngüsü gibidir. sırası ile operasyonlar çalışır. birden fazla thread vardr. bunu java ayarlar. | |
bütün thread operasyonlar yakın zamanlarda çalışacaktır. bir thread birini diğer thread diğerini çalıştırır.Mutlithread ise diğerini çalıştırır. |
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 thread; | |
public class KronometreThread implements Runnable { | |
private Thread thread; | |
private String threadName; | |
public KronometreThread(String threadName) { | |
this.threadName = threadName; | |
System.out.println("thread oluşturuluyor.."); |
NewerOlder