Search:

Type: Posts; User: HyperRei

Search: Search took 0.31 seconds.

  1. [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.
  2. [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...
  3. Replies
    6
    Views
    195

    [SOLVED] Re: Exception Handling/Logic Problems

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

    [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...
  5. Replies
    6
    Views
    195

    [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...
  6. Replies
    6
    Views
    195

    [SOLVED] Exception Handling/Logic Problems

    Hello! So I'm working on a Java program that asks the user how many grades they would like to input, then asking them to enter those grades. From which it throws into an array, some math happens to...
  7. Replies
    4
    Views
    256

    [SOLVED] Re: String Recursive Method

    I honestly forget what that line did...but yes you are correct that is exactly what it does. When it finds it x before hi, it simply does not count it. It should only count hi should it appear and if...
  8. Replies
    4
    Views
    256

    [SOLVED] Re: String Recursive Method

    Yes I can. The only line within main, as you can see, just prints out the output of the countHi2 method. As to what the countHi2 method does, the first two if statements are supposed to be base...
  9. Replies
    4
    Views
    256

    [SOLVED] String Recursive Method

    I was given the prompt below and while I have made my program count the number of times the word "hi" appears in the String given to the method, I'm not sure what to do about having the code ignore...
  10. Re: How to loop it to where the user may keep inserting links until they insert, "end."

    There is no loop in the code because that is part of my question. I don't know where to insert the loop and what parameters to use for it.
  11. How to loop it to where the user may keep inserting links until they insert, "end."

    I'm messing around with different libraries in Java and decided to make a program that redirects the user to the link they input into the program. It works but works only once. I would like for the...
  12. [SOLVED] Re: How do I output the academic year with the most As?

    Got it, I thought about doing it that way but I wondered if there was a shorter way of doing it for efficiency sake. You know? Thanks :D
  13. [SOLVED] Re: How do I output the academic year with the most As?

    In this part of the code is where I am supposed to do the math or "sum" as you say. The "if (gradeAs == grade[i]) {" is in relation to the line "int yearWithMostAs = numOfAs('A');" but in the actual...
  14. [SOLVED] How do I output the academic year with the most As?

    I have a program so far that outputs the number of As and Fs there were for a specific academic year. I would like to know how to output the academic year out of all the academic years that had the...
  15. [SOLVED] Re: How do I output information from my Method to the user as a table?

    I could probably add it there I believe, but I haven't been taught how to nor do I know how to add the values from the method there.
    As to whether the <ADD the value to print here> added what you...
  16. [SOLVED] Re: How do I output information from my Method to the user as a table?

    I edited the post to show the part of the code where Fahrenheit is computed. Also, I have included the code block that is supposed to print the desired table. Lastly, the computed value should be...
  17. [SOLVED] Re: How do I output information from my Method to the user as a table?

    I edited the Desired Output to show what I am trying to output. For Fahrenheit, it won't be 50.0 the whole way down of course, but rather, it would use the data from the Fahrenheit method in my code...
  18. [SOLVED] Re: How do I output information from my Method to the user as a table?

    All set :) I do believe I did it correctly. I also want to output the math/data from my Fahrenheit method which does the conversion of Celsius to Fahrenheit, but basically, a table to something that...
  19. [SOLVED] Re: How do I output information from my Method to the user as a table?

    Fixed/edited. The code should be there I believe.
  20. [SOLVED] Re: How do I output information from my Method to the user as a table?

    All the user has to do is run the code. My job is to output certain information using data from a file. Here's a GitHub link that shows what I have thus far along with what information is on the...
  21. [SOLVED] How do I output information from my Method to the user as a table?

    For my program, I'm trying to use data from a file that will take the numbers(which stand for Celsius) and use them to calculate standard deviation/convert to Fahrenheit. I've already created the...
  22. [SOLVED] How do I output information from my Method to the user as a table?

    For my program, I'm trying to use data from a file that will take the numbers(which stand for Celsius) and use them to calculate standard deviation/convert to Fahrenheit. I've already created the...
Results 1 to 22 of 22