Search:

Type: Posts; User: ghostheadx

Page 1 of 5 1 2 3 4

Search: Search took 0.48 seconds.

  1. 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 ) {

    add currentServer to failedServersList;
  2. 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. 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. 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. 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...
  6. Replies
    7
    Views
    141

    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 =...
  7. Replies
    7
    Views
    141

    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 )
    {
    ...
  8. Replies
    7
    Views
    141

    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();
    ...
  9. Replies
    7
    Views
    141

    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. Replies
    3
    Views
    112

    Re: gridworld error: " ';' expected"

    How would I do that then? What other options do I have in terms of a line of code?
  11. Replies
    3
    Views
    112

    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. Replies
    2
    Views
    125

    [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. Replies
    2
    Views
    125

    [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. 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. 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. 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. Replies
    4
    Views
    203

    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. 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. 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. 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. 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. 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. 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...
  24. Replies
    3
    Views
    177

    [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...
  25. Replies
    3
    Views
    177

    [SOLVED] Exercise 165

    Hi, so I have a question about this code. It says that if myID is equal to "t.getID" then return 0. Otherwise, it uses the "compareTo" method, within the definition of a compareTo method. How can a...
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4