Search:

Type: Posts; User: Blasfemmy

Search: Search took 0.09 seconds.

  1. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    Sorry about not using the code=java. I think now that I have a better grip on the syntax for java, progressing forward will be a lot easier. For some reason this concept just wasn't clicking. ...
  2. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    With this update, I was able to use If-Else statements to check to make sure that the user does not input more hours than there are in a week (168). At the moment, it exits the program. How would I...
  3. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    Great idea!

    Is this what you were referring to? With this I am able to simply delete the variable listed under "setAllVariables" and it won't be included in the execution of the program.


    ...
  4. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    I think I finally understand this concept! Here is what I have:




    import java.util.Scanner;

    public class Modification_of_3_4 {

    public static void main(String[] args) {
  5. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    Okay, the first time running it, it outputs "Hello World" as expected. The second time it outputs "null null", is this because the "String" is conflicting with the "void" in the header, thus making...
  6. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    I tried again to get it to return a value, this time looking a lot closer at the example and still can't get a return value:




    import java.util.Scanner; //Takes user input
    import java.text.*;...
  7. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    Okay, that made a lot of sense! How can I set it so it actually returns a value? Would I have to declare a new variable and set what value is returned equal to that variable?

    Here is my attempt:...
  8. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    I'm still confused on how this works >< I can't take a break from code writing, this is a project due tomorrow, and I've been trying to figure this out for almost a week now. Looking at the posted...
  9. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    Okay, so I messed around with the code a bit and now i've got it down to only one error! :D



    import java.util.Scanner; //Takes user input

    import java.text.*; //import for the decimal format...
  10. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    I tried to set the method headers lower in the code as "static" to make it so that it is universally static, thus removing the errors?:



    public static void main(String[] args) {

    //Methods...
  11. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    i'm getting less errors (18) with this version, but I don't know if I am even close to being on the right track.



    public static void main(String[] args) {

    //Methods
    public void...
  12. Replies
    24
    Views
    1,810

    [SOLVED] Re: Help with Methods

    I'm still really confused, I attempted to declare the statement correctly but am just running into more errors ~X(



    public static void main(String[] args) {

    //Methods
    public static...
  13. Replies
    24
    Views
    1,810

    [SOLVED] Help with Methods

    This program is a simple calculator that computes a weekly salary based upon daily values for overtime and regular hours after entering the hourly salary.

    I am trying to make this program run from...
Results 1 to 13 of 13