Skip to content

Instantly share code, notes, and snippets.

View josikie's full-sized avatar
🎯
Focusing

Josi Kie josikie

🎯
Focusing
View GitHub Profile
@josikie
josikie / activity_main.xml
Created November 9, 2019 13:55
Football Scores
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#A7FFDB">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@josikie
josikie / styles.xml
Created November 9, 2019 14:29
Football Scores
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light">
<!-- Primary theme color of the app (sets background color of app bar-->
<item name="colorPrimary">#3DFCDD</item>
<!-- Background color of buttons in the app -->
<item name="colorButtonNormal">#3DFCDD</item>
</style>
@josikie
josikie / MainActivity.java
Created November 9, 2019 14:42
Football Scores
package com.example.android.footballscores;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@josikie
josikie / main.cpp
Created November 9, 2019 23:19
Perkalian 1 - 100 Menggunakan C++
#include <iostream>
using namespace std;
int main()
{
cout << " PERKALIAN 1-10 "<<endl;
int x=1;
cout << " " << x << " " << " " << x*1 << " " << " " << x*2 << " " << " " << x*3 << " " << " " << x*4 << " " << " " << x*5 << " " << " " << x*6 << " " << " " << x*7 << " " << " " << x*8 << " " << " " << x*9 << " " << " " << x*10 << " " <<endl;
for (x=2;x<3;x++)
@josikie
josikie / strings.xml
Created November 9, 2019 23:20
Football Scores
<resources>
<string name="app_name">Football Scores</string>
<string name="score">Score</string>
<string name="team_a_score">Team A </string>
<string name="_0">0</string>
<string name="add">Add</string>
<string name="team_b_score">Team B</string>
<string name="fouls">Fouls</string>
<string name="team_a_fouls">Team A</string>
<string name="team_b_fouls">Team B</string>
@josikie
josikie / HelloWorld.java
Created November 12, 2019 06:31
Program Java HelloWorld
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
@josikie
josikie / kerangka
Last active November 12, 2019 06:34
Kerangka Kelas HelloWorld Java
public class HelloWorld {
.............................
}
@josikie
josikie / MainMethod
Created November 12, 2019 06:35
Kerangka MainMethod Program Java
public static void main(String[] args){
................................
}
@josikie
josikie / contoh
Last active November 12, 2019 12:52
tipe data x variabel
Penggunaan tipe data pada variabel :
1) int number = 5;
2) float action = 2.5;
3) String name = "josikie";
Bagian - bagian Variabel :
1) int(tipe data) number (nama variabel) =(tanda sama dengan) 5(nilai/ value yang disimpan ke dalam variabel) ;(tanda akhiran yaitu tanda titik koma)
2) float(tipe data) action(nama variabel) =(tanda sama dengan) 2.5(nilai/ value yang disimpan ke dalam variabel) ;(tanda akhiran yaitu tanda titik koma)
3) String(tipe data) name(nama variabel) =(tanda sama dengan) "josikie" (nilai/ value yang disimpan ke dalam variabel) ;(tanda akhiran yaitu tanda titik koma)
@josikie
josikie / SOP
Last active November 13, 2019 04:15
SOP Program Java HelloWorld
System.out.println("Hello World");