package com.company; public class Main { public static void main(String[] args) { // write your code here System.out.println("Ehlo"); //bsnsns int a; a = 17; a = -117; a = 1000000000; // a = 5000000000; double b = 1.635; String ime = "Jernej"; System.out.println(ime); byte j = -77; int stevilo; a = (int)b; int starost = 17; if((starost > 9) && (starost < 20)){ System.out.println("najstnik"); } else if(starost < 10){ System.out.println("otrok"); } else{ System.out.println("odrasel"); } } } /* 3 *x + 6 Velikost tipov bit 0/1 11, 10, 01, 00 111, 110, 101, .... 2^3 = 8 . . . +- 2^31 2 4 8 16 32 64 128 256 512 1024 2^10 = 1024 2^20 = 10^6 miljon 2^30 miljarda 10 ^9 -2 miljardi ... +2 miljardi Float double 0.746 * eksponent prednost izvajanja * + 1 + 3 * 7 Boolova algebra && || ! x y 11 10 01 00 x && y 1 0 0 0 x y 11 10 01 00 x || y 1 1 1 0 x 1 0 !x 0 1 in starost = 17; (starost > 9) && (starost < 20) ---- najstnik starost > 60 && niMrtev ---- starostnik */