Search:

Type: Posts; User: adi2609

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    902

    Re: Need help with a recursion..

    So what am I supposed to do?
  2. Replies
    3
    Views
    902

    Need help with a recursion..

    Hello fellows.. In the second method "searchArray2" it shows me an error on "return false", which says that it's incompatible types.. I know that it's about mixing string and int, but what if I want...
  3. Replies
    7
    Views
    1,027

    Re: I need help for my code...

    public class ExamScoresClient
    {
    public static void main(String[] args)
    {
    int[] examScores = {74, 67, 55, 91, 96, 49, 84, 75, 65, 95};
    ExamScores scores = new...
  4. Replies
    7
    Views
    1,027

    Re: I need help for my code...

    public class ExamScores
    {
    private int[] scores;
    private boolean isSorted;


    public int[] getScores()
    {
    int[] examScores = new int[scores.length];
  5. Replies
    7
    Views
    1,027

    Re: I need help for my code...

    public class ExamScores
    {
    private int scores;
    private boolean isSorted;



    public void sort()
    {
    if(isSorted)
  6. Replies
    7
    Views
    1,027

    I need help for my code...

    Hello fellas.. I have a homework, but I don't know how to start with it.. I have a plan how to do some methods but I can't do them without these stuff that I don't know how to make. Anyone pls help....
  7. Replies
    5
    Views
    1,676

    [SOLVED] Re: Can't find solution for error in my code..

    public double getAverage()
    {
    //add body of getAverage
    average = (test1 + test2) / 2.0;
    return average;
    }

    It shows that error happens average = (test1 + test2)...
  8. Replies
    5
    Views
    1,676

    [SOLVED] Re: Can't find solution for error in my code..

    possible loss of precision
    required: int; found: double
  9. Replies
    5
    Views
    1,676

    [SOLVED] Can't find solution for error in my code..

    Here is my code



    /**
    * Write a description of class Student here.
    *
    * @author ...
    * @version ...
    */
  10. Replies
    2
    Views
    1,308

    Re: Problem with my program! Pls HELP!

    Is it in the Name class, or TestNames class? And what exactly do you mean by data?



    import java.util.Scanner;
    public class TestNames
    {
    public static void main(String [] args)
    ...
  11. Replies
    2
    Views
    1,308

    Problem with my program! Pls HELP!

    Alright guys.. I have two classes in my program, called Name and NameTester..

    Here are the codes for both of them:


    /**
    * Write a description of class Name here.
    *
    * @author Adi...
  12. Replies
    14
    Views
    1,463

    Re: Code problems! HELP :)

    I'm using BlueJ IDE and when I click on Compile it says me incompatible types.. So, now I'm lost :)
  13. Replies
    14
    Views
    1,463

    Re: Code problems! HELP :)

    "There was an expression of a certain type required here.
    You provided an expression of a different type that is not
    compatible. (E.g. you wrote a String an int was expected)."
  14. Replies
    14
    Views
    1,463

    Re: Code problems! HELP :)

    import java.util.Scanner;
    public class Paint
    {
    public static void main(String[] args)
    {
    final int COVERAGE = 350;

    Scanner len = new Scanner(System.in);
    ...
  15. Replies
    14
    Views
    1,463

    Re: Code problems! HELP :)

    Mmm actually I was looking how to put the code to look better but I couldn't find it. Sorry I'm new here :).. I guess now it looks better

    So the thing is when I go to Compile the code in the line...
  16. Replies
    14
    Views
    1,463

    Code problems! HELP :)

    Sup fellas!

    I'm having some problems with my code.. Can you please help me out! Thanks

    Here is the code:


    import java.util.Scanner;
    public class Paint
    {
Results 1 to 16 of 16