Search:

Type: Posts; User: stommy989

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    5,473

    Re: Error using public static double Method

    Hmm, what's strange is now the build is successful, but no values are returned even though void isn't used.


    run:
    Feet Meters
    ---------------------

    Meters Feet...
  2. Replies
    5
    Views
    5,473

    Re: Error using public static double Method

    Thank you...dumb question, but how should the return statement look inside the method? I'm sorry, I'm a newbie haha.

    Sam
  3. Replies
    5
    Views
    5,473

    Error using public static double Method

    Hi everyone,
    I have a Java program that's supposed to convert feet to meters and meters to feet using methods.
    Here's what I have:


    public class HW3_1Method {
    public static void...
  4. Re: Need help.. Counting Prime #'s up to 50 w/while loop

    I actually fixed it today...the divisor++ should have been outside of the IF statement (in bold where it should be).

    public class Lab3_2 {
    public static void main(String[] args) {
    final...
  5. Re: Need help.. Counting Prime #'s up to 50 w/while loop

    I must be getting pretty close... here's my code now:

    public class Lab3_2 {
    public static void main(String[] args) {
    final int NUMBER_OF_PRIMES = 50; // Number of primes to display
    ...
  6. Need help.. Counting Prime #'s up to 50 w/while loop

    Hi everyone,

    I'm taking an intro Java course, which I'm quite honestly, not very good at it. Anyways, we have this Prime # program that counts all the Prime #'s up to 50 using a for loop:
    ...
Results 1 to 6 of 6