public class JLS_15_17_1_MultiplicationOperator_1 { public static void main(String args[]) { byte[] bs = {-128,127,0,-64,98,-73,-108,36,53,84,88,-54,-102,-43,5,-110,17,86,-123,-122,76,107,119,-124,2,100,30,32,3,-46,-101,-56,-116,74,94,40,-36,104,-38,-50,6,22,119,17,9,14,-51,47,29,-100,14}; for(byte b1 : bs) { for(byte b2 : bs) { System.out.println(b1*b2); } } System.out.println("==== CHAR ===="); char[] cs = {0x0,0xffff,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x6a,0x6b,0x6c,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x4a,0x49,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x25,0x7c87,0xa011,0x4866,0x39a2,0xcfc6,0xf99d,0x4b9c,0x5a86,0x8558,0xf0f1,0xfe14,0x3124,0x8a0e,0xb49a,0x1eae,0xe672,0x616f,0x291a,0x705b}; for(char c1 : cs) { for(char c2 : cs) { System.out.println(c1*c2); } } System.out.println("==== SHORT ===="); short[] ss = {-32768,32767,0,-8688,16983,-16769,-16183,32417,-23298,-8560,17035,29426,-28640,-11720,8786,-12590,-27331,16529,-29240,-25391,-28847,-17380,-20212,32094,22105,-13836,32729,-23792,-22763,-22458,27879,-16317,17166,-30720,-19568,-17945,-29478,11720,6071,13204,9374,11823,16357,18656,18643,14630,3508,2037}; for(short s1 : ss) { for(short s2 : ss) { System.out.println(s1*s2); } } System.out.println("==== INT ===="); int[] is = {-2147483648,2147483647,0,1763060082,-814593344,-1743855880,1771388034,911599810,-2006498382,-487868712,-1353262854,-1319354716,982386520,-1651342802,1826011298,-449885135,2039943705,-626967339,-2102565559,2005752864,-1523943036,1364673097,-501953346,-2007411809,1390571156,-1661477730,2000574138,-1239622555,1307910196,55725747,1784280316,1069194247,-415514108,209964455,-1841589834,-230945653,652000093,1583029642,-360808409,1548470842,817578643,-536033961,719115144,-2002359622,-1506875271,1382157858,678084652,-2099695269,-1767253975,-461618803,-1044092190,-146328400,1042075396,820566912,-1354839395,-35468958,1062473975,-1051024616,2115141719,1200768576,-1703355136,874962655,998361393,-2045479527}; for(int i1 : is) { for(int i2 : is) { System.out.println(i1*i2); } } System.out.println("==== LONG ===="); long[] ls = {-9223372036854775808L,9223372036854775807L,0L,-8474111525016252726L,-2802509675177611673L,1607712180973772798L,-8175703034471262288L,1715533125815316082L,-4007040503384893473L,-4646436199239366170L,-1835285783746353456L,-3249333678376091286L,3107531512359685217L,-3963076365655211760L,2007024329857161031L,2639499006181021410L,-3381217702926963425L,-8992687860472835306L,-3441337178776827965L,-4503371484864546944L,-4402067821670992929L,5583375864008976967L,8982148808328176835L,7544426274948227035L,-735499767541206663L,8312171174422786086L,-1025995632691294438L,-4041172618373657855L,2604357335606303837L,-5528349858760917015L,-6821514123700546960L,7619647655223430385L,-755560563609243894L,-4758466354141042438L,4076928450153688001L,-2848136005520130782L,2155118313403799192L,4981590870436413818L,3884495987445964764L,-6084055529889091333L,2521122485976133935L,4694721020229732537L,5669633984350069220L,733965901337282136L,286278655667215502L,-1366473358678910529L,-6062233179472901677L,5298063506905415180L,1672952474743788677L,-7443702531182826041L,4520458605278042866L,-5630558982398417319L,1060646058847101307L,-2775719620557410626L,-5697714609498219933L,2415298923149137273L,4257901075852678889L,-3365062555935581752L,-4781829582885210729L,4123432570455176217L,-3263005103053315620L,4394888382538330556L}; for(long l1 : ls) { for(long l2 : ls) { System.out.println(l1*l2); } } System.out.println("==== FLOAT ===="); float[] fs = {Float.MIN_VALUE,Float.MAX_VALUE,Float.NaN,Float.NEGATIVE_INFINITY,Float.POSITIVE_INFINITY,0.20300198F,0.2648067F,0.15938556F,0.28127247F,0.45867795F,0.9739691F,0.59039193F,0.41968948F,0.15277648F,0.6253944F,0.58214104F,0.4106124F,0.3374464F,0.9479539F,0.07053542F,0.37660384F,0.43525553F,0.5202499F,0.014975965F,0.42861623F,0.8944328F,0.43784606F,0.98345846F,0.6447266F,0.8213495F,0.74834436F,0.42469996F,0.8302373F,0.6400397F,0.44704688F,0.8421727F,0.20390368F,0.92948353F,0.31704694F,0.051235974F,0.95770794F,0.8119476F,0.99154705F,0.84564227F,0.020159125F,0.91554993F,0.13038075F,0.31827456F,0.6407442F,0.9576917F,0.18262851F,0.63340616F,0.88421273F,0.22997707F,0.5764999F,0.6100343F}; for(float f1 : fs) { for(float f2 : fs) { System.out.println(f1*f2); } } System.out.println("==== DOUBLE ===="); double[] ds = {Double.MIN_VALUE,Double.MAX_VALUE,Double.NaN,Double.NEGATIVE_INFINITY,Double.POSITIVE_INFINITY,0.09661652929239561,0.8798455738680219,0.7616592093464115,0.5192284518894886,0.24231840629492118,0.19389751553323364,0.8263844009174589,0.5485322225517479,0.17895624676576571,0.02203923989636858,0.7484649393860892,0.9444652249916725,0.7560981185505029,0.6173822751449667,0.10861414011497117,0.9457481544191695,0.4598369880502309,0.523063194922067,0.27733763443300663,0.2573348842522234,0.6293778996432382,0.7146733393847454,0.4276883104473964,0.9801637276942438,0.6817705952531339,0.44999923220142524,0.5309744769759828,0.11084456788499397,0.2155454391794891,0.39629469683348384,0.9742456034639171,0.07847531535326124,0.06420600940855203,0.12581316362814376,0.5917002149994987,0.38441427321307564,0.7269773920027083,0.9970871649010141,0.7117313368563606,0.9157175129528567,0.11690359461310562}; for(double d1 : ds) { for(double d2 : ds) { System.out.println(d1*d2); } } } }