Search:

Type: Posts; User: clarky2006

Search: Search took 0.10 seconds.

  1. Re: Program goes into infinite compilation. University project - Library Program.

    public boolean fiction()
    {
    if(true)
    {
    System.out.println("This book is fiction");
    }

    else
    if(false)
    {
  2. Re: Program goes into infinite compilation. University project - Library Program.

    How can i get it to print? what do you suggest?
  3. Re: Program goes into infinite compilation. University project - Library Program.

    public boolean fiction()
    {
    if(boolean == true)
    System.out.println("This book is ficion");

    else
    if(false)
    System.out.println("This book is non-fiction");
  4. Re: Program goes into infinite compilation. University project - Library Program.

    Have a look at the code i posted please. i need to add if fiction or not in the print method..cheers.................................................
  5. Re: Program goes into infinite compilation. University project - Library Program.

    Well said, You are right, they are trying not to bombard us with too much info..In Blue j u actually are able to create an object and call the methods. You actually see what you are doing...
  6. Re: Program goes into infinite compilation. University project - Library Program.

    Sorry mate, I have been at Uni all day, just got home now..I had a chat with our lecturer today about the Main () method and he said you are right, we need the main method in the real world. He says...
  7. Re: Program goes into infinite compilation. University project - Library Program.

    I have been doing introduction to java since september and the tutor has never said any thing about main method. in Blue J you can create an objects on the work bench.
  8. Re: Program goes into infinite compilation. University project - Library Program.

    import java.util.ArrayList;

    /**
    * A simple model of an auction.
    * The auction maintains a list of lots of arbitrary length.
    *
    * @author David J. Barnes and Michael Kölling.
    * @version...
  9. Re: Program goes into infinite compilation. University project - Library Program.

    1525

    here is a pic of blue j
  10. Re: Program goes into infinite compilation. University project - Library Program.

    Thats right there is no main in blue j..
  11. Re: Program goes into infinite compilation. University project - Library Program.

    import java.util.ArrayList;

    /**
    * This is the Library Class which would be used to maintain collections of members
    * and books.
    * @author (Michael Clark)
    * @version (30th October 2012,...
  12. Re: Program goes into infinite compilation. University project - Library Program.

    Blue J is the java environment our teacher is using to teach us and he wants the project done in blueJ.. cheers
  13. Re: Program goes into infinite compilation. University project - Library Program.

    Its all done in the blue J environment..cheers for ur input

    --- Update ---



    its not infinite loop but infinite compilation..it just says compiling and never stops unless i close the...
  14. Program goes into infinite compilation. University project - Library Program.

    /**
    * Write a description of class Book here.
    *
    * @author (Michael Clark)
    * @version (30th October 2012, version 0.1)
    */
    public class Book
    {
    // instance variables - replace the...
Results 1 to 14 of 14