Java 08 - Latihan Input (Membuat Program Sederhana dengan Java) - Tutorial Java Netbeans Indonesia

Jagat Koding
7 Aug 202214:25

Summary

TLDRThis video tutorial focuses on Java programming, guiding viewers through creating a simple program that accepts user input for name, address, and age. The presenter demonstrates how to utilize the Scanner class to gather input and store it in variables. They then format and display the input data in a structured manner, ensuring the output is neatly organized. The tutorial also touches on the use of escape sequences to enhance the presentation of the data, encouraging viewers to practice and refine their coding skills for better data handling and presentation.

Takeaways

  • 😀 The video is a tutorial on Java programming focusing on handling user input.
  • 💻 The presenter demonstrates how to create a simple Java program for inputting data such as name, address, and age.
  • 📝 The program is designed to display the inputted data in a formatted manner, showing the entered information as a sentence.
  • 🔧 The tutorial uses the Java Development Kit (JDK) and the Integrated Development Environment (IDE) to create a new Java project.
  • 📂 The project is named 'input_data' and is stored within a folder named 'Project Java' alongside other projects.
  • 🔑 The 'Scanner' class from the Java utility library is utilized to handle user input within the program.
  • 📖 The video explains how to declare variables with specific data types (String for name and address, Integer for age) and assign values to them based on user input.
  • 🎯 The tutorial covers the use of the 'System.out.println' method to display prompts and receive input from the user, and 'Scanner' methods like 'next()' and 'nextInt()' to read the input.
  • 📊 The presenter shows how to format the output using escape sequences to align text properly in the console, enhancing readability.
  • 🔗 The video concludes by encouraging viewers to practice and possibly improve upon the provided code to better suit their needs.

Q & A

  • What is the main topic discussed in the video?

    -The main topic discussed in the video is how to create a Java program for inputting data, specifically for entering a person's name, address, and age, and then displaying that information in a formatted manner.

  • What programming language is used in the video?

    -The programming language used in the video is Java.

  • What is the purpose of the 'scanner' library mentioned in the video?

    -The 'scanner' library in Java is used to obtain input from the user, allowing the program to read data such as text and numbers.

  • How does the video demonstrate the use of the 'scanner' library?

    -The video demonstrates the use of the 'scanner' library by importing it and using it to create an object that can read user input for variables like name, address, and age.

  • What is the significance of the 'System.out.println()' method in the context of the video?

    -The 'System.out.println()' method is used in the video to display output to the console, such as prompts for user input and the formatted display of the entered data.

  • What is the role of the 'public static void main' method in the Java program discussed?

    -The 'public static void main' method serves as the entry point of the Java program, where the execution of the program begins.

  • How does the video guide the creation of variables for storing user input?

    -The video guides the creation of variables by declaring them with appropriate data types (string for name and address, integer for age) and then using the 'scanner' object to assign values from user input to these variables.

  • What is the purpose of the 'nextLine()' and 'nextInt()' methods in the context of the video?

    -The 'nextLine()' method is used to read a line of text from the user, while 'nextInt()' is used to read an integer. These methods are part of the 'scanner' library and are used to capture different types of user input.

  • How does the video address the formatting of the output?

    -The video addresses the formatting of the output by using 'System.out.println()' to structure the displayed information in a readable format, such as 'Name was born in Address, age Years old'.

  • What is an 'Escape sequence' as mentioned in the video?

    -An 'Escape sequence' refers to a special sequence of characters that is used to represent a character that is not readily representable, such as a tab or a newline. In the video, it is used to format the output by adding spaces or tabs.

  • What is the final output the video aims to achieve with the Java program?

    -The final output the video aims to achieve is a formatted string that includes the user's name, address, and age, displayed in a clear and structured manner, such as 'Alex was born in Nganjuk, 19 years old'.

Outlines

00:00

💻 Introduction to Java Programming

The speaker begins by greeting the audience and proceeds to discuss the continuation of Java programming lessons. The focus of this video is on how to create a program for inputting data, which was previously discussed. The speaker demonstrates a simple program that allows users to input a name, address, and age. Upon entering the data, it is formatted and displayed according to a predefined format. The speaker guides the audience through the initial steps of opening a new project in Java, naming it 'input_data', and organizing it within a 'Project Java' folder. The speaker emphasizes the importance of keeping files organized for easy access and use.

05:00

📝 Setting Up Java Input Program

The speaker instructs the audience to clean up any comments in the code and sets up the main class with a 'public static void main' method. The program utilizes the Scanner library to handle user input, which is imported from the Java standard utility library. The speaker explains the process of declaring variables to store the user's name, address, and age, with appropriate data types (String for name and address, and Integer for age). The speaker then demonstrates how to prompt the user for input using 'System.out.println' and how to read the input using the Scanner object. The video provides a step-by-step guide on how to input data, store it in variables, and then display it in a formatted manner.

10:02

🔍 Processing and Displaying User Input

The speaker continues by showing how to process the input data and display it in a formatted string. The program concatenates the user's name, address, and age into a sentence that is then printed to the console. The speaker also covers the use of escape sequences to improve the formatting of the output, such as adding spaces between words. The video concludes with a demonstration of the complete program in action, showing how the user's input is taken, processed, and displayed in a clean and organized manner. The speaker encourages the audience to experiment with different data and to improve the text display as desired.

Mindmap

Keywords

💡Java

Java is a widely-used programming language known for its 'write once, run anywhere' capability. In the video, Java is the primary language used for demonstrating how to create a simple program that takes user inputs. The script mentions creating a Java project and using Java's standard libraries, indicating that Java is central to the video's programming tutorial.

💡Input

Input refers to the data that a program receives from the user or another system. The video focuses on creating a Java program that handles user inputs such as name, address, and age. The script explains how to use Java's Scanner class to read input from the console, which is a fundamental concept in programming for creating interactive applications.

💡Scanner

The Scanner class in Java is used for reading input from various sources such as the console, files, etc. In the script, the Scanner class is utilized to take inputs from the user. The video demonstrates how to create a Scanner object and use it to read different types of data, such as strings and integers, which is essential for building user input functionality in Java applications.

💡Variables

Variables are used in programming to store data values. The video script discusses declaring variables to hold user inputs like name, address, and age. Variables are crucial for data manipulation and storage in programs. The script provides examples of declaring variables with specific data types in Java and then using these variables to store and process user inputs.

💡Data Types

Data types define the kind of data a variable can hold. The video mentions string and integer data types when discussing variable declarations. Strings are used for textual data like names and addresses, while integers are used for numerical data like age. Understanding data types is fundamental to programming as it dictates how data is handled and processed within a program.

💡IDE (Integrated Development Environment)

An Integrated Development Environment is a software application that provides comprehensive facilities to computer programmers for software development. The script refers to using an IDE for Java development, where the user is instructed to open a project and create a new Java class. The IDE is the environment where the coding and testing of the Java program demonstrated in the video take place.

💡Main Method

In Java, the main method serves as the entry point for any application. The script mentions the 'public static void main' method, which is where the execution of the Java program begins. The video explains how to use this method to set up the program's logic for taking user inputs and processing them, illustrating a core concept in Java programming.

💡System.out.println

System.out.println is a Java method used for printing output to the console. The script discusses using this method to display prompts to the user and to output the results of the program. It is a fundamental way to communicate with the user in a Java program, and the video demonstrates its use in creating a user-friendly interface for the input program.

💡Escape Sequence

Escape sequences are used in Java to include special characters in strings. The video script refers to using escape sequences like '\t' for creating tabs in the output, which helps in formatting the console output neatly. This is important for improving the readability and presentation of the data displayed by the program.

💡Project

In the context of the video, a project refers to a collection of related program files in Java. The script instructs viewers on how to create a new Java project within an IDE, which is a common practice in software development for organizing code. The project is where all the Java classes and resources related to the input program are stored and managed.

💡Compilation

Compilation is the process of translating code written in a high-level programming language into machine language. Although not explicitly mentioned in the script, the process of creating a Java program as described in the video involves compilation. The video implies that after writing the code, it would be compiled to run the program that takes user inputs.

Highlights

Introduction to Java programming and continuation of previous discussions.

Explanation of creating a program for input that organizes data in a specific format.

Demonstration of a simple program interface for inputting name, address, and age.

Guide on creating a new Java project and naming conventions.

Importing the Scanner library for input handling in Java.

Utilizing the Scanner library to capture user input for a string variable.

Declaring multiple string variables in a single line for efficiency.

Using System.out.println for displaying prompts to the user.

Capturing input for the 'name' variable using the Scanner library.

Explanation of using 'next()' method for string inputs in the Scanner library.

Guide on inputting and capturing the 'address' variable.

Capturing the 'age' variable as an integer using the Scanner library.

Combining variables to display formatted output with user input.

Demonstration of the program's output with sample inputs.

Introduction to using escape sequences for better text formatting in output.

Using backslashes for tabs and line breaks in System.out.println for cleaner output.

Final program demonstration with formatted output and user inputs.

Encouragement for viewers to improve and develop their own text display patterns.

Conclusion of the tutorial with a sign-off and well-wishes.

Transcripts

play00:00

hai

play00:02

[Musik]

play00:09

oke Salamualaikum teman-teman semuanya

play00:11

kita akan melanjutkan pembahasan kita di

play00:13

pemrograman java dan di video kali ini

play00:16

kita akan coba ulas Gimana cara kita

play00:18

membuat program untuk inputan yang

play00:20

sebelumnya sudah kita bahas sehingga

play00:23

nanti kita bisa membuat program

play00:24

sederhana yang tampilannya seperti ini

play00:26

kita bisa menginputkan nama semisal di

play00:29

sini saya mengetikkan Alex

play00:31

terus kita bisa mengetikkan alamat

play00:33

dan yang terakhir kita bisa mengetikkan

play00:36

umur dan kalau ini kita enter semua data

play00:39

yang kita inputkan disini akan tersusun

play00:42

sesuai dengan format yang kita buat dan

play00:44

disini saya buat seperti ini dari data

play00:46

yang kita inputkan di atas di bawah sini

play00:48

saya Tampilkan sebagai kalimat seperti

play00:50

ini nah gimana cara pembuatannya solusi

play00:53

maksudnya sampai selesai seperti

play00:55

[Musik]

play01:00

udah temen-temen langkah awal kita buka

play01:02

untuk id-nya disini saya tetap

play01:04

menggunakan IDM nya teman-teman Jadi

play01:06

silakan dibuka untuk apa JNE duitnya

play01:08

kita akan coba buat program baru di

play01:13

Hai Langsung aja temen-temen kita buat

play01:15

projectnya disini untuk yang di kategori

play01:19

dan juga Project kita biarkan Aceh jadi

play01:21

kita biarkan default seperti biasanya

play01:23

untuk nama Project nya sekarang kita

play01:25

masuk di video ke-8 temen-temen jadi

play01:27

saya kasih apa ini delapan underscore

play01:30

kita akan bahas tentang input jadi saya

play01:32

kasih aja tulisan input data yakin Iya

play01:35

tujuan the score input data Nah untuk

play01:38

lokasi penyimpanannya saya akan

play01:39

kelompokkan dengan project-project

play01:41

sebelumnya teman-teman sebelumnya saya

play01:43

simpan di Project Java nah saya biarkan

play01:46

berkumpul dengan teman-temannya di sini

play01:48

ada di sini ada video sampai 07 ya

play01:50

sekarang kita masuk ke video 8 jadi

play01:53

langsung aja ke saya klik Open jadi

play01:55

disini projectnya terkumpul semuanya di

play01:57

folder Project Java Terserah kalian

play02:00

kalian kumpulkan di folder apapun yang

play02:02

penting kalian gak bingung kalau

play02:03

sewaktu-waktu kita perlu programnya

play02:05

kalian bisa mencarinya dan file-nya bisa

play02:07

terlantar api temen-temen Nah untuk yang

play02:10

lainnya kita biarkan default aja kita

play02:12

sekarang klik finish Hai Nah sekarang

play02:14

untuk yang komen-komen ini saya

play02:17

bersihkan dulu teman-teman jadi biar

play02:19

Spesialnya itu agak banyak gaya

play02:20

temen-temen saya sisakan seperti ini ya

play02:23

saya tinggalkan public class sama public

play02:26

Static void main ini karena di video

play02:29

kali ini kita akan memanfaatkan input

play02:31

jadi kita akan memanfaatkan si library

play02:35

scanner teman-teman yang sudah tersedia

play02:37

di Java kalau kalian ingat di video

play02:40

sebelumnya kita sudah ulas Gimana

play02:42

caranya kita menggunakan library scanner

play02:44

caranya kita langsung impor aja dari ide

play02:48

ini tempat dari tersimpannya sih

play02:51

lebreros scanner teman-teman jadi kita

play02:53

impor untuk foldernya itu namanya Java

play02:55

terus untuk letak dari PGC itu namanya

play02:59

yu'til atau utility dari sih program

play03:03

Java itu dan untuk nama library nya itu

play03:06

adalah scanner

play03:07

Oke kalian ketikan seperti ini aja

play03:10

temen-temen ya ini titiknya kelebihan

play03:12

satu temen-temen oke Hai kalau sudah

play03:14

sekarang kita masuk ke kelas utama kita

play03:16

yaitu di klasemein saya akan masuk di

play03:20

public Static void disini nah untuk

play03:22

pemanggilan atau penggunaan dari scanner

play03:25

kita harus memanggil library itu di

play03:27

dalam kelas main kita atau ditempat kita

play03:29

menjalankan program utama cara

play03:32

pemanggilannya seperti biasa temen-temen

play03:33

kita ini siapkan atau kita memberikan

play03:36

identifier terhadap sih library scanner

play03:39

caranya kita Panggil dulu Apa nama

play03:41

library nya scanner kita kasih

play03:44

identifier apa input jadi untuk input

play03:47

itu identifier nya terserah kalian

play03:49

kalian mau kasih nama apa terserah

play03:51

disini biar saya nggak bingung saya

play03:53

kasih nama input biar kalau nanti saya

play03:55

ingin melakukan input data ke dalam

play03:57

sebuah variabel tinggal saya panggil sih

play03:59

identifier input otomatis kita akan

play04:01

terhubung ke library scanner gitu

play04:04

nah identifier input ini adalah

play04:07

pemanggilan objek dari si scanner

play04:11

dengan parameter

play04:14

temps.id

play04:16

Nah untuk pemanggilan dari library

play04:18

scanner nya sudah berhasil teman-teman

play04:20

Sekarang kita akan coba buat beberapa

play04:22

variabel yang akan kita gunakan sesuai

play04:24

dengan program tadi teman-teman yang

play04:26

pertama tadi kita perlu sebuah variabel

play04:28

yang akan kita gunakan untuk menampung

play04:31

nama karena nama itu bentuknya teks ya

play04:34

teman-teman Jadi kita akan menggunakan

play04:35

tipe data string untuk identifier atau

play04:38

variabelnya saya akan kasih nama ya nama

play04:41

ajar ini selanjutnya tadi kita punya

play04:44

variabel yang akan kita gunakan untuk

play04:46

menyimpan data alamat karena alamat itu

play04:49

juga teks maka Disini saya akan

play04:51

menggunakan tipe data string nama

play04:54

variabelnya adalah alamat untuk

play04:56

selanjutnya tadi saya perlu umur

play04:58

teman-teman Karena umur disini saya

play05:00

nggak mau ada koma koma nya ya kita

play05:02

anggap aja dia bilangan bulat jadi saya

play05:04

akan buat variabel dengan tipe data

play05:06

integer namanya adalah umur nah udah

play05:09

kayak gini teman-teman nah kita bisa

play05:10

mencederai enakan di sini ada dua yang

play05:14

tipe datanya adalah string yaitu nama

play05:16

dan juga alamat Disini saya akan coba

play05:18

singkat untuk deklarasinya jadi Nama dan

play05:21

alamat saya deklarasikan dalam satu

play05:23

baris karena dua-duanya sama tipe

play05:25

datanya yaitu sering teman-teman Oke

play05:27

gitu ya untuk deklarasi perdagangan

play05:30

ASEAN ini udah beres Sekarang kita akan

play05:32

Coba lakukan input data sebelum

play05:35

melakukan input data kita akan berikan

play05:37

label yang tampil tadi temen-temen nama

play05:40

titik dua baru di sebelahnya kita

play05:42

inputkan data ya karena kita ingin

play05:44

menampilkan sesuatu maka kita

play05:47

menggunakan system.in sebelumnya kita

play05:50

udah ngebahas temen-temen kalau kita

play05:51

bisa menggunakan shortcut caranya

play05:53

ketikan aja south-south lalu kalian TP

play05:57

dia otomatis muncul system.in Land tapi

play06:01

ini default-nya system.out println ada

play06:04

LN nya kalau ini kita biarkan semisal

play06:07

nama kita nanti menginputkan nama

play06:10

tradisi Nikita Panggil untuk cinta

play06:13

scanner untuk menginputkan data ke

play06:15

variabel nama yang tipe datanya string

play06:18

caranya variabel nama itu adalah

play06:22

identifier dari lebar scanner yang sudah

play06:24

kita deklarasikan di atas ini apa input

play06:27

ya teman-teman kita berikan dot selalu

play06:31

perintah yang kita jalankan di dalam

play06:32

library scanner itu adalah next

play06:36

apa kalau sering kemarin kita

play06:38

menggunakan next selain karena next

play06:41

selain kita gunakan untuk memberikan

play06:43

inputan lebih dari satu kata jadi ada

play06:46

spasinya bisa kalau enggak ada lainnya

play06:48

kita menggunakan next saja Berarti dia

play06:51

enggak ada spasinya teman-teman gitu

play06:54

kalau ini kita simpan terus coba kita

play06:56

jalankan

play06:57

dia inputannya ada di bawah dari teks

play07:00

atau narasi yang kita buat teman-teman

play07:02

kita lihat di sini ya nama kalau kita

play07:05

ketikkan sesuatu semisal Alex

play07:09

jadi akan tampil di bawahnya teman-teman

play07:11

Gimana caranya kalau kita ketikkan nama

play07:14

dia letaknya langsung di sebelah

play07:15

kanannya dari titik dua ini caranya LN

play07:19

ini kita hapus jadi kita melakukan

play07:21

perintah system.in kalau dot println dia

play07:25

bisa memberikan enter kalau doktrin aja

play07:28

dia disampingnya jadi nggak turun ke

play07:30

bawah gitu ceritanya teman-teman Nah

play07:32

kalau sudah kita coba jalankan sekali

play07:34

lagi

play07:36

Oh ya kalau kita menginputkan sesuatu

play07:39

Alexander Kurniawan

play07:42

Nah dia langsung disampingnya

play07:43

disampaikan tanpa Dia memberikan enter

play07:46

di bawahnya Oke langkah selanjutnya tadi

play07:48

kita memberikan input berupa alamat Ya

play07:51

udah ini kalian copy aja temen-temen

play07:52

kalau kalian males ngopi Ya udah ketik

play07:54

aja sout terus LN nya kalian Hapus

play07:58

sini Kasih alamat

play08:00

di bawahnya baru kita berikan inputan

play08:03

terhadap variabel alamat yang tipe

play08:05

datanya string kita panggil aja

play08:07

variabelnya alamat itu adalah si

play08:11

identifier dari scanner input

play08:13

dotnya karena dia string alamat bisa

play08:16

dong kita nanti memberikan lebih dari

play08:17

satu kata berarti Dotnet lainnya

play08:20

teman-teman

play08:22

oke alamat sudah beres kita coba nanti

play08:25

aja yang terakhir kita punya variabel

play08:27

umur temen-temen ya karena umur ini

play08:30

adalah integer jadi di sini bentar kita

play08:33

tampilkan SD dulu sout

play08:35

untuk perintah Hai menginputkan umur ya

play08:38

berarti umur titik dua di bawahnya kita

play08:41

berikan hak enter kita berikan

play08:44

dibawahnya variabel umur yang tipe

play08:46

datanya adalah integer itu adalah

play08:48

identifier dari scanner input karena

play08:52

tipe datanya integer di sini kita

play08:54

berikan next

play08:55

imd jangan lupa di adalah method ya Jadi

play09:00

ada kurung buka kurung tutup nya di

play09:01

belakang Oke kalau sekarang kita

play09:04

jalankan kita sudah berhasil membuat

play09:06

inputan seperti ini nama semisal Alex

play09:10

langsung muncul di bawahnya alamat

play09:12

semisal Nganjuk

play09:13

dibawahnya kita ada perintah untuk

play09:16

menginputkan umur semisal umurnya 22 Oke

play09:20

inputan udah beres untuk teks yang kita

play09:23

inputkan ini sudah berhasil harusnya

play09:25

berhasil masuk ke dalam variabel tinggal

play09:28

kita proses untuk variabel itu kita

play09:30

apakan ya karena tadi kita tampilkan

play09:33

berupa susunan teks ya di bawahnya sini

play09:35

jadi pm2 dibawahnya sini pembatas dulu

play09:39

teman-teman

play09:41

sout kita akan berikan gini sama dengan

play09:45

yang banyak oke dia println karena kita

play09:48

ingin memberikan enter setelahnya

play09:51

dibawahnya sini kita sout lagi ya

play09:54

kayaknya ini ya kepakai println gak

play09:56

masalah namanya kita tampilkan disini

play09:59

variabelnya adalah nama Terus mungkin ya

play10:02

mungkin saya berikan Oh gini aja

play10:04

temen-temen nama terus disampingnya kita

play10:06

berikan

play10:07

lahir di terus disini kita hubungkan

play10:11

dengan variabel alamat

play10:15

Terus di bawahnya jadi turun ke bawah ya

play10:18

Jadi nanti tampil di sini namanya

play10:19

semisal Alex jadi Alex lahir di

play10:21

alamat-alamat Nganjuk berarti Alex lahir

play10:24

di Nganjuk terheboh sini kita berikan

play10:27

berumur

play10:29

baru di sini kita hubungkan dengan

play10:31

variabel umur umurnya berapa yang kita

play10:35

inputkan kalau 22 ke-22 di belakangnya

play10:38

kita berikan redaksi spasi th gitu aja

play10:42

atau tahun gitu ya teman-teman

play10:44

Oke sekarang kita coba jalankan sekarang

play10:47

saya inputkan namanya Alex

play10:50

alamatnya Nganjuk

play10:54

umurnya semisal 19 dia akan tampil

play10:58

seperti ini Alex lahir di Nganjuk

play11:00

berumur 19th itu ya teman-teman Coba

play11:03

kita menggunakan data yang lain semisal

play11:06

Bisma

play11:08

Bisma l gitu ya biar lebih dari satu

play11:11

kata alamatnya Kediri kota oke umurnya

play11:17

29 Oke Bisma l lahir di Kediri kota

play11:21

berumur 29th Oke Mantap ya teman-teman

play11:24

berarti pemanfaatan variabel umtuk kita

play11:28

proses diproses selanjutnya udah beres

play11:30

kita punya variabel kosong ya jadi

play11:33

disini variabel kosong semua nama alamat

play11:35

umur

play11:36

cara mendeklarasikan variabel dengan

play11:38

tipe data tertentu tapi enggak ada value

play11:41

atau isinya baru di bawah sini

play11:44

variabelnya kita isi dengan data sesuai

play11:47

keinginan kita teman-teman enggak sampai

play11:50

situ aja setelah datanya kita masukkan

play11:52

ke dalam variabel di bawah sini variabel

play11:55

yang sudah kita isi sesuai keinginan

play11:57

kita kita proses sesuai dengan yang kita

play12:00

harapkan jadi ada variabel kosong ada

play12:04

inputannya ada outputnya jelas prosesnya

play12:07

sudah ada di dalam situ teman-teman nah

play12:09

gitu nah disini masih ada sesuatu

play12:12

kekurangan yang sebelumnya sudah kita

play12:14

bahas tapi belum kita terapkan yaitu

play12:16

pemanfaatan Escape sequence menurun

play12:19

karena titik2nya ini masih blepotan

play12:21

masih berantakan ya deh di depan ada

play12:24

yang ditengah ada yang di belakang

play12:25

Sekarang kita akan rapikan menggunakan

play12:28

Escape squash kalau kalian ingat cara

play12:30

merapikan teks seperti ini kita bisa

play12:33

memanfaatkan yang namanya backup selesai

play12:35

stay atau step jadi fungsi istimewa atau

play12:39

karakter istimewa untuk memberikan Tab

play12:41

di dalam output system.in

play12:44

kita berikan bexley terhadap narasi atau

play12:49

menjadi narasinya kita kasih website

play12:51

semuanya di sebelumnya titik dua pasca

play12:54

teman-teman Coba kita save terus coba

play12:57

kita jalankan

play12:58

Nah sekarang sudah ada Spesialnya antara

play13:01

nama dan titik dua Ada jaraknya sekitar

play13:03

beberapa

play13:04

spasi temen-temen Coba kita ketikkan

play13:06

Alex k

play13:09

Nah sudah rapi temen-temen ya antara

play13:12

titik dua yang atas sama titik dua yang

play13:14

bawah itu sudah ada sudah apa ya sudah

play13:16

sama rapi teman-teman coba alamatnya

play13:18

Ngawi

play13:21

umurnya

play13:22

17 Nah kan ini lebih rapi daripada tadi

play13:26

temen-temen titik2nya sudah sesuai

play13:28

dengan

play13:29

atasnya Ya sudah satu baris gini Oke

play13:33

mungkin itu ya teman-teman pembahasan

play13:35

kita untuk latihan di sini Kita sudah

play13:38

berhasil berlatih Untuk memanfaatkan

play13:41

input data didalam sebuah variabel yang

play13:44

sudah kita deklarasikan dengan enggak

play13:47

ada data Ya maksudnya variabel kosong

play13:49

terus kita isikan data terus datanya

play13:51

kita proses di bawah mau kita apakan

play13:53

Terserah kalian ia untuk redaksi yang

play13:56

saya buat seperti ini kalau kalian mau

play13:57

improve silahkan ya temen-temen kalian

play13:59

coba otak-atik gimana teks yang ingin

play14:02

kalian Tampilkan polanya Seperti apa

play14:04

silahkan kalian improve atau kembangkan

play14:06

sendiri so mungkin itu pembahasan kali

play14:08

ini semoga bermanfaat

play14:09

terus saksikan video selanjutnya saya

play14:12

kiri wassalamu'alaikum warahmatullahi

play14:14

wabarakatuh

play14:19

[Musik]

Rate This

5.0 / 5 (0 votes)

関連タグ
Java ProgrammingInput HandlingTutorialCoding BasicsVariable DeclarationData ProcessingScanner ClassString ManipulationInteger VariablesOutput Formatting
英語で要約が必要ですか?