# Search:

Page 1 of 5 1

1. ## Thread: how to return an alert true if the server is functioning normally

Replies
2
Views
773

### Re: how to return an alert true if the server is functioning normally

Does that mean like this?

for (int i = 0; i < Server.length()-1; i++){

if ( currentServer.ping() == false ) {

2. ## Thread: how to return an alert true if the server is functioning normally

Replies
2
Views
773

### how to return an alert true if the server is functioning normally

So, I don't know how to start off this program. I'm not looking for the final answer, but I don't know two things: 1. the objective, 2. what type of thing do I start it off with? A method? I'm pretty...
3. ## Thread: stuff from the whole year that I need to review for the AP Exam

Replies
2
Views
440

### stuff from the whole year that I need to review for the AP Exam

Here are the concepts that I don't get from computer science. I don't think I learned them well from just the textbook alone. Does anyone know where I could review all of this:

-What is OBOB?
...
4. ## Thread: problem with understanding boolean logic

Replies
3
Views
572

### Re: problem with understanding boolean logic

Actually, I typed it wrong. The options are:

A. None of the three

B. I and II only

C. II and III only
5. ## Thread: problem with understanding boolean logic

Replies
3
Views
572

### problem with understanding boolean logic

In my Be Prepared Comp Sci textbook, I ran into this question:

Exercise 3

Assuming that x, y, and z are integer variables, which of the following three logical expressions are equivalent to...

Replies
7
Views
506

### Re: exercise 229

Alright, so I'll take the else statement out. Here's what I have now:

public class BlushingActor extends Critter
{
public void processActors( ArrayList<Actor> actors )
{
Color c =...

Replies
7
Views
506

### Re: exercise 229

Obviously, that includes else statements. Alright, so here's what I have now:

public class BlushingActor extends Critter
{
public void processActors( ArrayList<Actor> actors )
{
...

Replies
7
Views
506

### Re: exercise 229

It's still not working. Here's what I've edited it to:

public class BlushingActor extends Critter
{
public void processActors( ArrayList<Actor> actors )
{
Color c = getColor();
...

Replies
7
Views
506

### exercise 229

Hi, so this exercise has two separate sections of editable code. The assignment is to fix the two errors. Do I need to create a getter method to get rid of the error? Here are the full instructions:...
10. ## Thread: gridworld error: " ';' expected"

Replies
3
Views
649

### Re: gridworld error: " ';' expected"

How would I do that then? What other options do I have in terms of a line of code?
11. ## Thread: gridworld error: " ';' expected"

Replies
3
Views
649

### gridworld error: " ';' expected"

Here is my code and as you can guess, I get the above error. Thanks for the answer. I'd really appreciate if you could also explain why gridworld has such a low functionality level. Is this a...
12. ## Thread: how to set a new color in gridworld

Replies
2
Views
769

### [SOLVED] Re: how to set a new color in gridworld

I got it to work, but sure enough I have another gridworld question that is really a different thread so that's where I'm gonna post it.
13. ## Thread: how to set a new color in gridworld

Replies
2
Views
769

### [SOLVED] how to set a new color in gridworld

Hi, I've been using grid world with my school. It's a part of the eimacs textbook. Could I please have some help with the following code that I wrote for gridworld. It's a very small tad bit of code:...
14. ## Thread: I don't get the concept of how to insert an item into an array; exercise 170

Replies
11
Views
1,067

### Re: I don't get the concept of how to insert an item into an array; exercise 170

@GregBrannon

I agree with you. I still don't think I get that part of the book though.

--- Update ---

I mean, that exercise per-say.
15. ## Thread: I don't get the concept of how to insert an item into an array; exercise 170

Replies
11
Views
1,067

### Re: I don't get the concept of how to insert an item into an array; exercise 170

I copied the directions from the book to the text book with copy paste:

Write a new class method, insert, for the Item class that takes three arguments — an Item[] array, an Item newItem, and an...
16. ## Thread: I don't get the concept of how to insert an item into an array; exercise 170

Replies
11
Views
1,067

### Re: I don't get the concept of how to insert an item into an array; exercise 170

I'm using the eimacs.com online textbook. It's exercise 170. The section is Insertions, subsection #3. It's on page 265.

--- Update ---

By the way, I posted in this old thread you told me to...
17. ## Thread: AP Be Prepared: concepts

Replies
4
Views
665

### Re: AP Be Prepared: concepts

Here's my understanding of these things:

Instance variables- They are what one fills in for the parameters, in a specific instance of an object.

Encapsulation- when a variable or data is hidden...
18. ## Thread: I don't get the concept of how to insert an item into an array; exercise 170

Replies
11
Views
1,067

### Re: I don't get the concept of how to insert an item into an array; exercise 170

The part about "Item[] array = Item.makeItemArray();" isn't editable. It's a part of the textbook. Why would they do that?

--- Update ---

I'm guessing they want me to define it afterwards?...
19. ## Thread: I don't get the concept of how to insert an item into an array; exercise 170

Replies
11
Views
1,067

### Re: I don't get the concept of how to insert an item into an array; exercise 170

@Norm

Lol, I always forget to paste the whle error message. It says:

"error: cannot find symbol

array[i-a] = array[i]"
20. ## Thread: I don't get the concept of how to insert an item into an array; exercise 170

Replies
11
Views
1,067

### I don't get the concept of how to insert an item into an array; exercise 170

Hi, so here's the problem. I don't really get the concept of how I "insert" an item into an array. I get a cannot find symbol error when I try to. I think its because I'm losing focus. Could someone...
21. ## Thread: exercise 168 and apologies for my last post

Replies
4
Views
918

### Re: exercise 168 and apologies for my last post

@mageorge

Oh, no I know. I fixed the "i" to "int i" and it totally almost made it work. I didn't have to change much after that, besides make nEvens = i / 2; and increment nEvens after the loop...
22. ## Thread: exercise 168 and apologies for my last post

Replies
4
Views
918

### Re: exercise 168 and apologies for my last post

Hey, I made it work. Thanks for referring me to the loops tutorial. I really appreciate it. I'll read it. Here is my code:

public class Item
{
private int myN;

public Item( int n )
23. ## Thread: exercise 168 and apologies for my last post

Replies
4
Views
918

### exercise 168 and apologies for my last post

Hi, I'm sorry about the last post. I shouldn't just say "I don't get it" as the whole question. It's totally my fault. Anyways, I am having a problem with this code. I get an error no matter what I...

Replies
3
Views
656

### [SOLVED] Re: Exercise 165

So one compareTo() method can be used in the definition of the other. How is the inner method defined then? I mean originally.

--- Update ---

I don't completely understand the exercise. What am...