Skip to content

Instantly share code, notes, and snippets.

View edenizk's full-sized avatar
:shipit:
🐱‍💻

Ergin Deniz Kosecioglu edenizk

:shipit:
🐱‍💻
View GitHub Profile
@edenizk
edenizk / ListView.java
Created July 28, 2018 12:55
List View App
package com.example.deniz.listviewapp;
import android.app.ListActivity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Adapter;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
@edenizk
edenizk / LifeCycle.java
Created July 28, 2018 11:58
cycle of android
package com.example.deniz.lifecycle;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
@edenizk
edenizk / movingview_MainActivity.java
Created July 21, 2018 16:01
intent changing activity move from page page demo
package com.example.deniz.movingview;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
@edenizk
edenizk / outputFormatting.java
Created July 19, 2018 23:19
Sample Input java 100 cpp 65 python 50 Sample Output ================================ java 100 cpp 065 python 050 ================================
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("================================");
for(int i=0;i<3;i++){
String s1=sc.next();
int x=sc.nextInt();
@edenizk
edenizk / polymorphism_Animal.java
Created July 19, 2018 00:11
polymorphism with animal class
package com.example.deniz.polymorphism;
public class Animal {
private String animalName;
private String animalColor;
private int animalSpeed;
@edenizk
edenizk / PolishTimes.java
Created June 9, 2018 01:43
Polish Time Quiz app
package com.example.deniz.quizer;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
@edenizk
edenizk / Game.java
Created May 30, 2018 00:05
multidimensional array
package com.example.deniz.multidimensional;
import android.widget.TextView;
public class Game {
private String gameName;
private int[][] scores;
public Game(String gameName, int[][] scores){
package com.example.deniz.modifyarrayandelement;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import org.w3c.dom.Text;
public class MainActivity extends AppCompatActivity {
package com.example.deniz.puzzle_game;
public class CompanyAndDevice {
private final String COMPANY_NAME;
private final String COMPANY_DEVICE;
public CompanyAndDevice(String COMPANY_NAME,String COMPANY_DEVICE){
this.COMPANY_NAME = COMPANY_NAME;
@edenizk
edenizk / Exceptionhandling.java
Created May 18, 2018 13:26
Exception handling
package com.example.deniz.exceptionhandling;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import org.w3c.dom.Text;