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
<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" |
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
<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> |
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.android.footballscores; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.TextView; | |
public class MainActivity extends AppCompatActivity { |
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
#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++) |
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
<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> |
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 HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World"); | |
} | |
} |
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 HelloWorld { | |
............................. | |
} |
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 static void main(String[] args){ | |
................................ | |
} |
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
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) |
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
System.out.println("Hello World"); |
OlderNewer