Search:

Type: Posts; User: x3rubiachica3x

Search: Search took 0.26 seconds.

  1. Replies
    2
    Views
    2,277

    Swing Drop Down Menus

    Could someone give me some example as to how to generate a button with a drop down menu? Or a toolbar with a drop down menu?
    Thanks
  2. Replies
    1
    Views
    1,123

    Stream Tokenizer

    Can I get a few simple examples of how to make a StreamTokenizer? I'd like an example that reads input from the kayboard, not a file. Thank you!
  3. Replies
    1
    Views
    586

    I dunno What I'm Doing :(

    I need help, I dunno what Im supposed to do. Everything that needs to be initialized I feel its coming from classes and interfaces that havent been implemented yet :/
    This assignment builds on...
  4. Replies
    6
    Views
    890

    Re: creating a package

    Thanks for clearing up interfaces, I kinda get them. When I create a package, do I need to have all my classes, and interfaces and stuff in separate files?
  5. Replies
    6
    Views
    890

    creating a package

    So, Continuing from my last homework, I now have to make a package called games.

    A package named games. In the package are these types (a type is a class or interface):
    A class named Game. This...
  6. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    Thanks guys. I turned my homework in and hopefully I get a decent grade or at least some more feedback on what I did wrong
  7. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    My bad, I meant method. I keep getting my C++ mixed with java.
    public Board(String[] occupied){
    Board chessBoard = new Board();
    chessBoard[2][5] = occupied;
    return...
  8. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    This is what he has specified, he does want me to use the string as a constructor
    Write a constructor with one argument String[] occupied, which is a list of those squares in the board that are...
  9. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    public class Board{
    public Board(){
    int row, col;
    int Board[][] = new int [8][8];
    int value = Board[row][col];
    }
    public Board(String[] occupied){
    ...
  10. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    My compiler keeps on throwing me an error that it doesnt know what Board is when I try to initialize some spaces in the occupied string function

    Board(String[] occupied){
    Board[1][2] =...
  11. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    He wants us to initialize some spaces on the board to be occupied.
  12. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    So then do I fill the
    Board(String[] occupied){

    }

    with spaces that already contain pieces? Thats what this constructor is for, right?
  13. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    I myself am not absolutely positive at what he wants by this. I get a hold of him today, cause he wont be here until 2 and thats when my class is. And I just realized I have to also create a class...
  14. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    So for this occupied function
    Board(string[] occupied)
    my professor wants me to choose a couple values in my array and give them a value of 1, to show that tha space is occupied.How would I do...
  15. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    I think I'm understanding some of this. The ; at the end of my for loops was just out of habit I guess.
    1) Is that piece of code what I'm supposed to use if the space is occupied? Will I even need...
  16. Replies
    23
    Views
    7,825

    Re: Simple Chess program

    Yes, I don't know how to implement anything. I just turned in a C++ assignment today and I don't know how to go about this program at all. I can make a board and thats about it :/
  17. Thread: Hi.

    by x3rubiachica3x
    Replies
    3
    Views
    371

    Re: Hi.

    Thanks for the welcome! I loook forward to and hope to click with java, but programming in general ain't easy for me :/
  18. Replies
    23
    Views
    7,825

    Simple Chess program

    Hi, I'm trying to write a simple chess program for my java class. And I;m not exactly sure how to do it.
    We have these specifications:
    * Write a constructor with no arguments which initializes...
  19. Thread: Hi.

    by x3rubiachica3x
    Replies
    3
    Views
    371

    Hi.

    Hey, I'm taking a java class at my college and am in need of some help when it comes to programming. Just last year and currently still I am learning C++ and making the transfer to java is a little...
Results 1 to 19 of 19