0% found this document useful (0 votes)
5 views2 pages

Java Biodata Program Example

This Java program collects biodata information from the user, including name, NIM, gender, address, and phone number. It uses a Scanner object to read user input and then displays the collected data in a formatted manner. The program is structured with a main method that handles the input and output operations.

Uploaded by

Muchamad Sholeh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Java Biodata Program Example

This Java program collects biodata information from the user, including name, NIM, gender, address, and phone number. It uses a Scanner object to read user input and then displays the collected data in a formatted manner. The program is structured with a main method that handles the input and output operations.

Uploaded by

Muchamad Sholeh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

public class Biodata_biasa {

public static void main(String[] args){

Scanner input = new Scanner([Link]); //object scanner baru

String nama, nim, jenisKelamin, alamat, nope, def="Masukan "; //variabel

[Link]("| Contoh Program Java BIODATA |");

[Link]("===========================================");

[Link](def + "Nama \t\t: " );

nama = [Link](); //memberikan nilai variabel dg menyimpan inputan dari user

[Link](def + "NIM \t\t: " );

nim = [Link]();

[Link](def + "Jenis Kelamin \t: " );

jenisKelamin = [Link]();

[Link](def + "Alamat \t\t: " );

alamat = [Link]();

[Link](def + "Nomor Handphone\t: " );

nope = [Link]();

[Link]("");

// Tampilkan datanya

[Link]("+------------------------------------------+");

[Link]("| Data Biodata Mahasiswa |");

[Link]("+------------------------------------------+");

[Link]("| Nama\t\t: " + nama);

[Link]("| NIM\t\t: " + nim);


[Link]("| Jenis Kelamin\t: " + jenisKelamin);

[Link]("| Alamat\t: " + alamat);

[Link]("| Nomor HP\t: " + nope);

[Link]("+------------------------------------------+");

You might also like