So what am I supposed to do?
Type: Posts; User: adi2609
So what am I supposed to do?
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...
public class ExamScoresClient
{
public static void main(String[] args)
{
int[] examScores = {74, 67, 55, 91, 96, 49, 84, 75, 65, 95};
ExamScores scores = new...
public class ExamScores
{
private int[] scores;
private boolean isSorted;
public int[] getScores()
{
int[] examScores = new int[scores.length];
public class ExamScores
{
private int scores;
private boolean isSorted;
public void sort()
{
if(isSorted)
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....
public double getAverage()
{
//add body of getAverage
average = (test1 + test2) / 2.0;
return average;
}
It shows that error happens average = (test1 + test2)...
possible loss of precision
required: int; found: double
Here is my code
/**
* Write a description of class Student here.
*
* @author ...
* @version ...
*/
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)
...
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...
I'm using BlueJ IDE and when I click on Compile it says me incompatible types.. So, now I'm lost :)
"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)."
import java.util.Scanner;
public class Paint
{
public static void main(String[] args)
{
final int COVERAGE = 350;
Scanner len = new Scanner(System.in);
...
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...
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
{