I tried to run program, after first correct output , I get this:
Exception in thread "main" 32
java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
at java.util.ArrayList.rangeCheck(Unknown...
Type: Posts; User: Mrcinica
I tried to run program, after first correct output , I get this:
Exception in thread "main" 32
java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
at java.util.ArrayList.rangeCheck(Unknown...
First, I got error in this function:
public static void insert (int x)
{
heap.add(x);
int t = heap.size() - 1;
while (t/2 && heap.get(t)>heap.get(t/2))
{
int temp =...
Can you tell me what this error mean:
error: Class names, 'Rad', are only accepted if annotation processing is explicitly requested
1 error
Rad.java:41: error: cannot find symbol
while (t/2 && heap(t)>heap(t/2))
^
symbol: method heap(int)
location: class Rad
Rad.java:41: error: cannot find symbol
while (t/2 &&...
The mistake is in this function:
public static void insert (int x)
{
heap.add(x);
int t = heap.size() - 1;
while (t/2 && heap(t) > heap(t/2)) // error
{
int temp =...
I found mistake and fixed 1 line, but, can you tell me ,how to defined heap(int) in this line : while (t/2 && heap(t)>heap(t/2))
Java problem: The method heap(int) is undefined for the type "Rad"
I hope that I translate task well :
A bread is being sold at the bakery. At the start of the day n bread are baked each of them with quality x. As time passes new bread are baked with various...