Search:

Type: Posts; User: HyperRei

Page 1 of 2 1 2

Search: Search took 0.16 seconds.

  1. Replies
    1
    Views
    196

    Two Constructors Accessed?

    Hello, I was trying to learn about Abstract classes and I came to find the code you see below. My question is, why do you also see the abstract Bike class constructor being executed when creating the...
  2. How to split parts of a String but ignoring certain parts?

    Hello, I've decided to try and mess around with a dataset I've found online and when it came to writing the code for it, my typical method of using a comma to split between each segment doesn't work...
  3. Re: Looking for a good resource for working with images & sound

    The only thing I know about graphics-wise concerning Java is JavaFX, and if you're looking towards android GUI using Java, there are some options and all information/tutorials can be found on YouTube...
  4. [SOLVED] Value of a variable not changing after reinstantiating it

    Hello,
    I was messing around testing out my understanding of Generics when I came across a problem that I believe to be simple, yet I cannot recall the solution to it. At first, I had the value hold...
  5. [SOLVED] Re: How to save/access class objects on a .txt file?

    Alright, just tried it and it seems to be running properly. Thank you.
  6. [SOLVED] Re: How to save/access class objects on a .txt file?

    I'm having a bit of trouble understanding. So, I should save the data onto a file where the entry is of fixed length as you've said, so the file would look something like this (limiting to lenght 26...
  7. [SOLVED] How to save/access class objects on a .txt file?

    Hello, I'm working on a 2-Step authentication program, that currently stores a user's account info such as username, password, and twoStepChoice within an 'Account' object, and each of those objects...
  8. Java Material such as Abstract Class and Inner Classes

    I'm learning more about Java through a Udemy course and most recently learned about the abstract class, interface, and inner classes. My question is, how important is it that you absolutely...
  9. Replies
    4
    Views
    258

    [SOLVED] Re: Count Num of Letters In Common

    Yes, that's exactly what each method does. Also, I know the problem is within the method that removes duplicates. I believe it to be a logic error as it doesn't seem to take into account the last two...
  10. Replies
    4
    Views
    258

    [SOLVED] Re: Count Num of Letters In Common

    I'll try to describe the logic the best I can. I'll do it in the steps below:

    Step 1: We pass in our Strings into the method, where the first thing done by the method is to create an int variable...
  11. Replies
    4
    Views
    258

    [SOLVED] Count Num of Letters In Common

    Hello, I am working on an exercise that's giving me a bit of a problem. The goal is to output the number of letters two Strings have in common. I've thought of a method where I take the Strings,...
  12. Re: How do you all practice Java programming?

    Ohhh okay, I understand what you're saying. I never really thought about it that way with practice. Coding something I could have some use for or someone else might. At the same time, with this...
  13. How do you all practice Java programming?

    I'm a computer science student who only just earned an Associate's degree this past Spring but I still don't feel, I guess you could say, that I'm proficient at coding using what I currently know...
  14. [SOLVED] Stopping execution after 10 seconds/outputs

    Hello, I'm messing around with LocalDateTime and I was wondering what method does one has to implement in order to make the timer stop after n times where n is the int the user enters. Also, is it my...
  15. Replies
    2
    Views
    998

    [SOLVED] Re: Error message printing twice

    Thank you very much for the suggestion. The thought of printing out the invalid value back to the user as also a helpful way to debug didn't occur to me. I'll keep this in mind moving forward with...
  16. Replies
    2
    Views
    998

    [SOLVED] Having to press 'ENTER' twice

    Hello, I am working on a, you could say, a small project where the user is able to create of list of movies they'd like and add, remove, replace it, etc. There are only a limited number of options...
  17. [SOLVED] Re: Program skipping ahead and not allowing/reading user input

    Thank you, I managed to figure out what was wrong with the link you attached. Thanks again.
  18. [SOLVED] Program skipping ahead and not allowing/reading user input

    Hello, I'm practicing using ArrayList and I've decided to make a simple program that allows the user to add, remove, search, replace, etc. movie titles using ArrayList. The problem is that, when I...
  19. Path towards reaching an intermediate level

    Hello, I was wondering if I could get some help/advice on a path to take towards being an individual with intermediate or above, understanding of Java. Currently, I feel that I only know the basics...
  20. Replies
    1
    Views
    302

    Strings and methods

    Hello, so I'm working on some code to remove whitespace within String data type variables that hold values such as: " Hello World " and "* Hello World ...
  21. [SOLVED] Re: Why does method need to return a String rather than leave it as void?

    Ohhh okay I see, that makes sense. Thank you so much.
  22. [SOLVED] Why does method need to return a String rather than leave it as void?

    Hello, I was practicing polymorphism messing around with a Car analogy when I came across a problem. In my main method within my for loop, I tried to access my starteEngine(), accelerate(), and...
  23. Replies
    6
    Views
    354

    [SOLVED] Re: Exception Handling/Logic Problems

    Thank you Norm. I'll keep that in mind moving forward. Have a great day.
  24. Replies
    6
    Views
    354

    [SOLVED] Re: Exception Handling/Logic Problems

    It was the order of that if-statement. I managed to get the program to work now finally how I wanted it. It handles those exceptions now. My only question now, if you don't mind answering, would be...
  25. Replies
    6
    Views
    354

    [SOLVED] Re: Exception Handling/Logic Problems

    Hello, I would like the program to handle non-integer inputs essentially. Within Part 1, I would like it to ONLY take in values 1 and higher. Any value that is a non-int or 0 or <0 will lead to an...
Results 1 to 25 of 43
Page 1 of 2 1 2