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.example.percobaanrelativelayout; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.Toast; | |
public class MainActivity extends AppCompatActivity implements View.OnClickListener { | |
Button btnLogin; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout 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:layout_marginLeft="@dimen/activity_horizontal_margin" | |
android:layout_marginTop="@dimen/activity_vertical_margin" | |
android:layout_marginRight="@dimen/activity_horizontal_margin" | |
android:layout_marginBottom="@dimen/activity_vertical_margin" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout 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:layout_margin="@dimen/medium_dimen" | |
android:orientation="vertical" | |
tools:context=".MainActivity"> |
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.example.hitungpersegi; | |
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.TextView; | |
import android.widget.Toast; |
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.lukmannudin.assosiate.mvctutorial; | |
import java.util.ArrayList; | |
public class DataPokemon { | |
public static String[][] data = new String[][]{ | |
{ | |
"Cubone", | |
"https://images.pokemontcg.io/dp6/90.png", | |
"Common", |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.datapokemononline"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" |
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
# | |
install.packages('dataset') | |
Titanic | |
str(Titanic) | |
# | |
dfTitanic<-as.data.frame(Titanic) | |
head(dfTitanic) | |
View(dfTitanic) |
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
Tingkat Perekonomian | Jenis Kelamin | Pekerjaan | Punya Deposito? | |
---|---|---|---|---|
Menengah Ke Atas | Pria | Tetap | Ya | |
Menengah Ke Atas | Pria | Tetap | Tidak | |
Menengah Ke Atas | Pria | Tetap | Ya | |
Menengah Ke Bawah | Pria | Tetap | Tidak | |
Menengah Ke Bawah | Pria | Honorer | Ya | |
Menengah Ke Bawah | Wanita | Honorer | Tidak | |
Menengah Ke Bawah | Wanita | Honorer | Ya | |
Menengah Ke Bawah | Wanita | Tetap | Tidak | |
Menengah Ke Atas | Wanita | Honorer | Tidak |
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 SESimpleAdd { | |
static public int add(int a, int b) { | |
return a + b; | |
} | |
static public int multiply(int a, int b) { | |
return a * b; | |
} |
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
iris | |
View(iris) | |
install.packages("ggvis") | |
install.packages("class") | |
library("ggvis") | |
library("class") | |
#melihat korelasi antar atribut | |
iris %>% ggvis(~Sepal.Length, ~Sepal.Width, fill = ~Species) %>% layer_points() | |
iris %>% ggvis(~Petal.Length, ~Petal.Width, fill = ~Species) %>% layer_points() |