#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    9
    Rep Power
    0

    Fibonacci Number Help


    Hey guys i'm having a bit of trouble with my program. I'm positive the code i have is right but it's not showing any data.

    Code:
    import java.util.Random;
     
    public class Test{
      public static void main(String[] args){
        Random r = new Random();
       
     
        System.out.println("fib1: "+fib1);
        System.out.println("fib2: "+fib2);
    Can anyone tell me what the output of this code should be? And why it isn't working for me? :/
  2. #2
  3. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Feb 2004
    Location
    Mobile, Alabama
    Posts
    4,023
    Rep Power
    1285
    You're leaving out the code.

IMN logo majestic logo threadwatch logo seochat tools logo