Why is the print out 99 instead of 88 since its ob1.var1=88 System.out.println("ob1 integer:"+ob1.var1);
class JavaExample{
//Static integer variable
static int var1=69;
...
Type: Posts; User: Apersonlolwhy
Why is the print out 99 instead of 88 since its ob1.var1=88 System.out.println("ob1 integer:"+ob1.var1);
class JavaExample{
//Static integer variable
static int var1=69;
...
it worked thx! I just had to change ur line if( jackpot = 100){
to
if( jackpot == 100){
/* Program: Random number generator
* Written by: Chaitanya from beginnersbook.com
* Input: None
* Output:Random number between o and 200*/
import java.util.*;
class GenerateRandomNumber {
...