Skip to content

Instantly share code, notes, and snippets.

create table TRN_CUSTOMERS
(
name VARCHAR2(50),
surname VARCHAR2(100),
client_no NUMBER(8) not null,
gender VARCHAR2(1),
age NUMBER(3)
)
INSERT INTO TRN_CUSTOMERS
@utkumalkocoglu
utkumalkocoglu / Executer.java
Created June 30, 2015 06:22
Spring yapısı ve maven örnek proje
package com.ykb.main;
import org.springframework.context.support.FileSystemXmlApplicationContext;
public class Executer {
public static void main(String[] args) {
FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(
args[0]);
class MyCar
attr_reader :color,:year,:moder
def initialize(color,year,model)
@color=color
@year=year
@model=model
@current_speed=0
end
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Kullanıcı extends JFrame implements ActionListener {
JTextField username;
import java.io.*;
public class Sayilar {
public static void main(String[] args) throws IOException {
int i=0;
File f=new File("C:\\Users\\Utku61\\Desktop\\Sayilar.txt");
File ftek=new File("C:\\Users\\Utku61\\Desktop\\Tek.txt");
File fcift=new File("C:\\Users\\Utku61\\Desktop\\Çift.txt");
FileWriter fa=new FileWriter(ftek,false);
def printexp(array):
agac = ""
try:
if array[1]: agac += "(" + printexp(array[1])
except:
pass
agac += str(array[0])
try:
if array[2]: agac += printexp(array[2]) + ')'
except:
def sağın_solu(array,newBranch):
if array[0]<newBranch[0]:
if len(array[2])>0:
array[2]=sağın_solu(array[2],newBranch)
else:
array[2]=newBranch
else:
if len(array[1])>0:
array[1]=sağın_solu(array[1],newBranch)
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class HesapMakinesi extends Applet implements ActionListener
{
private Button Topla;
private Button Cikar;
private Button Carp;
private Button Bol;
private TextField kutu1;
def printexp(array):
try:
if array[1]:
print("(", end='')
printexp(array[1])
except:
pass
print(array[0], end='')
try:
def sol_dip_heap(array):
AnaKökİndis=1
while AnaKökİndis<len(array):
AnaKökİndis *=2
print (array[AnaKökİndis//2])
array=[0,5,9,11,14,18,19,21,33,17,27]
sol_dip_heap(array)