This file contains hidden or 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 brata.com; | |
import java.util.Scanner; | |
public class kalkulator { | |
static float total = 0, bil1 = 1, bil2 = 1; | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); |
This file contains hidden or 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
@Override | |
protected void onCreate(Bundle v) { | |
// TODO Auto-generated method stub | |
super.onCreate(v); | |
setContentView(R.layout.activity_splash); | |
if (checkAndRequestPermissions()) { | |
Toast.makeText(MainActivity.this, "Granted all permissions", Toast.LENGTH_SHORT).show(); |
This file contains hidden or 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 brata.com; | |
import java.util.Scanner; | |
public class TK2_BilanganPrima { | |
public static void main(String[] args) { | |
int choice; | |
while (true) { | |
System.out.println("\nMenu hari ini :\n"); | |
System.out.println("1. Penjumlahan bilangan prima"); |
This file contains hidden or 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 yusufwisnubrata.com; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; | |
public class DataKuliah { | |
static List<List> arrayMatkuls = new ArrayList<List>(); | |
public static void main(String[] args) { |
This file contains hidden or 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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:fancy="http://schemas.android.com/apk/res-auto" | |
android:layout_width="fill_parent" | |
android:layout_height="match_parent" | |
android:background="@color/white" | |
android:orientation="vertical"> | |
<android.support.design.widget.AppBarLayout |
This file contains hidden or 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 binus; | |
import java.util.Scanner; | |
/** | |
* | |
* @author ucup | |
*/ | |
public class Perhitungan { | |
public static void main(String[] args) { | |
int A, B; |
This file contains hidden or 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:orientation="vertical" | |
tools:context=".MainActivity"> | |
<ScrollView |
This file contains hidden or 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 GetFirebaseActivity extends Activity implements AdapterView.OnItemClickListener { | |
Activity activity; | |
ListView listView; | |
ListAdapter adapter; | |
private ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>(); | |
Button btnBack; | |
DatabaseReference rootRef,demoRef; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
This file contains hidden or 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 WriteFirebaseActivity extends AppCompatActivity { | |
Activity activity; | |
EditText textTitle, textInput; | |
Button submit; | |
DatabaseReference rootRef, demoRef; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |