Search:

Type: Posts; User: Apersonlolwhy

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    519

    Can anyone answer this?

    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;
    ...
  2. Re: Can anyone help me to find what code im wrong? thx

    it worked thx! I just had to change ur line if( jackpot = 100){

    to

    if( jackpot == 100){
  3. Can anyone help me to find what code im wrong? thx

    /* Program: Random number generator
    * Written by: Chaitanya from beginnersbook.com
    * Input: None
    * Output:Random number between o and 200*/
    import java.util.*;
    class GenerateRandomNumber {
    ...
Results 1 to 3 of 3