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
Arabanın Fiyatı : 76700.0 TL'dir | |
Arabanın %2.5 Indirimli Fiyatı : 74782.5 TL'dir | |
Arabanın Sadik Musteri Fiyatı : 71700.0 TL'dir |
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 void websocketConnection() { | |
//Get websocket from application | |
MyApplication app = (MyApplication ) getApplication(); | |
mSocket = app.getSocket(); | |
mSocket.on(Socket.EVENT_CONNECT, onConnect); | |
mSocket.on(Socket.EVENT_DISCONNECT, onDisconnect); | |
mSocket.on(Socket.EVENT_CONNECT_ERROR, onConnectError); | |
mSocket.on(Socket.EVENT_CONNECT_TIMEOUT, onConnectError); | |
mSocket.on("messageFromServer", onNewLocation); | |
mSocket.connect(); |
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
public class Main { | |
public static void main(String[] args) { | |
ArrayList<Konut> list = new ArrayList<Konut>(); | |
list.add(new Konut(180, "Emlakçı")); | |
list.add(new Konut(120, "Sahibinden")); | |
ArrayList<String> list2 = new ArrayList<String>(); | |
list2.add("Furkan"); |
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
class Ata { | |
public void Kurucu() { | |
System.out.println("Ben Ata Kurucuyum."); | |
} | |
public void Yazdir() { | |
System.out.println("Ata Sınıfındayım."); | |
} | |
} | |
class Ogul extends Ata { |
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
public class Main { | |
public static void main(String[] args) { | |
Ev daire = new Ev(20, 4); // Nesne Oluşturulamaz. | |
} |
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
public class Main { | |
public static void main(String[] args) throws Exception { | |
PreCheck preCheck = new PreCheck("4543 5807 9574 0027"); | |
preCheck.validation(); | |
} | |
private static class PreCheck { | |
private String _cardNumber; |
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
public void validation() throws ValidationException { | |
if(_cardNumber.contains("4543")){ | |
System.out.println("Login Successful.."); | |
} | |
else{ | |
throw new ValidationException("Login Failed.."); | |
} | |
} |
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
public class Main { | |
public static void main(String[] args) throws Exception { | |
PreCheck preCheck = new PreCheck("4543 5807 9574 0027"); | |
preCheck.validation(); | |
} | |
private static class PreCheck { | |
private String _cardNumber; | |
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
public class ValidationException extends Exception { | |
private String _message; | |
public ValidationException(String message){ | |
_message = message; | |
} | |
@Override | |
public String getMessage() { |
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
public class ValidationException extends Exception { | |
private String _message; | |
public ValidationException(String message){ | |
_message = message; | |
} | |
@Override | |
public String getMessage() { |
NewerOlder