Search:

Type: Posts; User: fallout87

Search: Search took 0.10 seconds.

  1. Do I have to keep setting the path file for javac?

    Do I have to keep setting the path file for javac in cmd when compiling more than 1 program?

    For instance, I have set path for javac and compiled "forexample.java" so it now has a class file so I...
  2. Re: Need a non void method to return the first three characters of a string

    Thanks Freaky Chris.

    That link lead me to solving my problem.

    In case anyone was curious to the solution:


    //Programming Projects 9.1
    public class PP9_1
    {
  3. Need a non void method to return the first three characters of a string

    Trying to get a non void method to return the first 3 letters of a word but get the following error corresponding to the error in the attachment

    "Type mismatch: cannot convert from int to string"
  4. Replies
    8
    Views
    1,720

    Re: need help with a function...

    Doesn't matter.

    Figured it out now.

    Thanks anyway : )
  5. Replies
    8
    Views
    1,720

    Re: need help with a function...

    Have done a re-vamp of my code, first I'll put up what happens when you run the code then after that will be the actual code in eclipse....
  6. Replies
    8
    Views
    1,720

    Re: need help with a function...

    Hi

    Thanks for the replies...

    I'm trying to print if the contestantScore array elements are above or below the average using a function. I know I have to pass the contestantScore array elements ...
  7. Replies
    8
    Views
    1,720

    need help with a function...

    Hi

    I need some help creating a function that will check if each element in the array "contestantScore[]" which is defined from user input, is less or more than the variable "average" which is...
Results 1 to 7 of 7