Skip to main content

Pemrograman java dasar. Menampilkan Text pada layar.

Pemrograman java dasar

Hallo gan masi bersama saya deni ace, kali ini saya akan berbagi pengetahuan dasar tentang pemrograman java, bukan bermaksud menggurui atau mengajari hanya ingin berbagi ^_^, berbagi dan belajar bersama di blog deniace.blogspot.com
Pada kesempatan kali ini saya akan berbagi mengenai cara menampilkan teks pada layar, aplikasi yang saya gunakan yaitu java netbeans IDE 8.0.2, .

Pertama tama kita buka terlebih dahulu aplikasi java netbeans,




Lalu kita pilih file -> new Project
java -> java application -> next ->


project name (nama project), bisa di isi sesuai keinginan. -> finish



lalu akan muncul tampilan seperti ini



lalu kita tulis kan kode seperti ini
System.out.println("Hallo dunia");


Maka ketika kita run program maka akan menghasilkan tampilan seperti ini



Kita dapat mengganti kata hallo dunia dengan kata2 lain selama masih berada diantara tanda kutip   (“ ”)
Misal nya kita akan membuat kalimat “ada apa dengan mu”, kode nya adalah sebagai berikut
System.out.println("ada apa dengan mu");
 maka akan menjadi seperti ini



apa bila kita ingin cepat mengetik System.out.println(""); maka bisa dengan kita mengetikan sout di ikuti dengan ctrl+space
Oke sekian dulu artikel mengenai java kali ini, sampai jumpa di artikel selanjut nya, tetap di deniace.blogspot.co.id.
Sahabat anda

Deni Ace

Comments

Post a Comment

Popular posts from this blog

Section 6 Quiz Oracle Database Programming with SQL

Section 6 Quiz             (Answer all questions in this section)                                                             1.         Given the following descriptions of the employees and jobs tables, which of the following scripts will display each employee ï¾’ s possible minimum and maximum salaries based on their job title? EMPLOYEES Table: Name   Null?    Type EMPLOYEE_ID          NOT NULL     NUMBER (6) FIRST_NAME             VARCHAR2 (20) LAST_NAME  NOT NULL     VARCHAR2 (25) EMAIL NOT NULL     VARCHAR2 (25) PHONE_NUMBER                  VARCHAR2 (20) HIRE_DATE   NOT NULL     DATE JOB_ID           NOT NULL     VARCHAR2 (10) SALARY                     NUMBER (8,2) COMMISSION_PCT                NUMBER (2,2) MANAGER_ID                       NUMBER (6) DEPARTMENT_ID                 NUMBER (4) JOBS Table: Name   Null?    Type JOB_ID           NOT NULL     VARCHAR2 (10) JOB_TITLE     NOT NULL     VARCHAR2 (35) MIN_SALARY                      

Section 10 Quiz Database Programming With SQL

Section 10 Quiz             (Answer all questions in this section) 1.         A multiple-row operator expects how many values?   Mark for Review (1) Points             One or more (*)             Only one             Two or more             None 2.         The salary column of the f_staffs table contains the following values: 4000 5050 6000 11000 23000 Which of the following statements will return the last_name and first_name of those employees who earn more than 5000?  Mark for Review (1) Points             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT last_name, first_name FROM f_staffs WHERE salary <5000 o:p="">             SELECT last_name, first_name FROM f_staffs WHERE salary = (SELECT salary FROM f_staffs WHERE salary < 5000);             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT salary FROM f_staffs WHERE salary > 5000); (*)             SELEC

Section 2 Quiz Database Design Oracle

Section 2 Quiz             (Answer all questions in this section) 1.         An Entity Relationship model is independent of the hardware or software used for implementation. True or False?  Mark for Review (1) Points             True (*)             False 2.         A well structured ERD will show only some parts of the finished data model. You should never try to model the entire system in one diagram, no matter how small the diagram might be. True or False?           Mark for Review (1) Points             True             False (*) 3.         The purpose of an ERD is to document the proposed system and facilitate discussion and understanding of the requirements captured by the developer. True or False?          Mark for Review (1) Points             True (*)             False 4. Documenting Business Requirements helps developers control the scope of the system and prevents users from claiming that the new system does not meet their business req