Search results

  1. thedude23

    The Outer Worlds

    Finished this again today for the second time, absolutely loved it, can't wait for the second one.
  2. thedude23

    What does "final class" mean in Java?

    Final classes can't be extended or inherited from.
  3. thedude23

    List not printing out hardcoded book already added to list

    Its easier to get something up and running quickly but in saying that my goal is get this console app up and running and then see if I can get a gui version up and running, gonna take your advice regarding using the three classes and I'll post back here on how I get on thanks for the help.
  4. thedude23

    List not printing out hardcoded book already added to list

    Nah programming is just something I do for fun in my spare time, not great at it I know but I love it as a hobby.
  5. thedude23

    List not printing out hardcoded book already added to list

    Thanks for responding fella's, I did some messing around and I added a method called AddBooks(); with the hardcoded books and then I added method calls within the switch statment to that method and it now seems to work the way I want it too public static Boolean KeepGoing = true...
  6. thedude23

    List not printing out hardcoded book already added to list

    I'm trying to make a library where you can add books, search for books etc, I have a hardcoded book that you should be able to search for but it only displays the after I add a new book and then it will display the hardcoded book if you search for it again the code public class Book {...
  7. thedude23

    function not giving back total

    Can anyone tell my total and average aren't being printed out or even calculating by the looks of it list = [] total = 0 num = 0 keep_going = True def get_input(): while keep_going: try: num = int(input("Please enter numbers into list or 0 to exit: ")) if...
  8. thedude23

    function not giving back total

    Thanks visibleman and Th0nt for taking the time to reply. This worked thanks I changed it to def __init__(self, name, age, hours_worked, amount_per_hour, Subtotal): self.set_name(name) self.age = age self.hours_worked = hours_worked self.amount_per_hour =...
  9. thedude23

    function not giving back total

    Hello there New to python, I have a background in java, I'm finding oop in python confusing, this program simply prints out employee info and its suppose calculate their wage, when I run the program it just displays 0, any help appreciated thanks. class Pay(): def __init__(self, name...
  10. thedude23

    Problem with if statment

    Thanks! If I wanted to add in the following validation if(guess > 10) { Console.WriteLine("OUT OF BOUNDS"); } Where would I put so that only that message prints when the guess is great than 10? atm it prints the guess...
  11. thedude23

    Problem with if statment

    Hi I'm having a problem with my if statment in that if the user enters an letter rather than a number it will display the error message but also display "Too low" is there anyway to stop this from happening ? public static bool isValid = true; public static Random random = new...
  12. thedude23

    Base class toString problem

    Goddamn spelling mistakes, cheers.
  13. thedude23

    Base class toString problem

    Hi My base class tostring method isn't printing to the console, the child class one is though static void Main(string[] args) { Cat C = new Cat("Fluffy",4,"Tabby","Ginger","Mouse"); Console.WriteLine(value: C.ToString()); C.sound(); } public...
  14. thedude23

    How to catch thrown exception

    Hi , the exception in the below code, how can I catch the exception with a try catch block? public void setFirstName(String firstName){ if(firstName.length() < 2){ throw new IllegalArgumentException("NAME LENGTH IS TOO SHORT! "); } this.firstName = firstName...
  15. thedude23

    Fallout 76

    Does the physical version have a hefty patch? where as the download version doesn't?
  16. thedude23

    What is the creepiest thing to have ever happened to you?

    Fair play, I would have crapped myself If I had to feel my way out of the cellar like you did.
  17. thedude23

    Show us your kitty cats

    Hahaha so true!
  18. thedude23

    No bank holiday this weekend?

    I was mistaken so my bad. Yes I could have sworn uk got a bank holiday in October too, until I was told it wasn't.
  19. thedude23

    Show us your kitty cats

    Envious of all the cat owner's here.
  20. thedude23

    No bank holiday this weekend?

    When did the last weekend in October stop being a bank holiday in the Uk? or was it ever a bank holiday weekend?
Back
Top Bottom