Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package bab2;
- /**
- *
- * @author Bengkel IT Lhokseumawe
- */
- // Program Untuk mempelajari Pemberian Nilai Ke Suatu Tipe
- // Dalam pemrograman Java
- public class Percobaan1 {
- public static void main(String[]args){
- boolean b=true;
- System.out.println("Boolean b: "+b);
- char c='C';
- System.out.println("Char c: "+c);
- byte bt=10;
- System.out.println("Byte: "+bt);
- short s=20;
- System.out.println("Short: "+s);
- int i=30;
- System.out.println("Integer: "+i);
- long l=40L;
- System.out.println("Long: "+l);
- float f=3.14F;
- System.out.println("Float: "+f);
- double d=3.14;
- System.out.println("Doubel: "+d);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement