Search:

Type: Posts; User: titowinky

Search: Search took 0.29 seconds.

  1. Replies
    2
    Views
    436

    Can I use toString() here?

    I have this LinkedList called cardList. I have placed cards here using this:

    cardList.add(new Card(int suit, int rank))
    I can display the contents = 00, 01, 02 and so on ... with my suit being...
  2. Replies
    0
    Views
    357

    Anything here about GWT?

    How do I convert an existing java program to GWT-MVP format program? It's not clear to me where the process begins. Please help.
  3. Replies
    4
    Views
    366

    Re: How to convert two elements into one

    So what will be the output of that code if I do sys.out.println(str) if the string is KD?
    I have the code below and the corresponding output.

    void openTopCards(){
    LinkedList<String> fliper =...
  4. Replies
    4
    Views
    366

    Re: How to convert two elements into one

    This is a solitaire game (without graphics) that I am trying to write. I can't figure out how to write a class with that property because the cards are not always facing down. By default they are...
  5. Replies
    4
    Views
    366

    How to convert two elements into one

    Is it possible to convert one element (string) from one linkedlist with another element (string) from another linkedlist to have an output of one element that joined the two strings?
    I am trying to...
  6. Replies
    5
    Views
    374

    Re: Which is out of bounds?

    Thank you Tim. I figured that out yesterday after a colleague pointed it to me. I should have declared the value first before using it.
    As a Java programming enthusiast, I was expecting people to...
  7. Replies
    5
    Views
    374

    Which is out of bounds?

    int m, mc;
    Foundations give = new Foundations();
    LinkedList<String>[] maneuver = new LinkedList[m];
    LinkedList<String> distribute(){
    m = 7;
    for (int i = 0; i != m; i++){
    maneuver[i] =...
  8. Replies
    2
    Views
    455

    Re: Why do I get a null value?

    I am sorry about the long code. I thought it would be helpful for readers to see everything. I really don't know yet how to implement the Exceptions.
    I seem to have traced the problem. I just do not...
  9. Replies
    2
    Views
    455

    Why do I get a null value?

    package wargame;

    import java.util.*;

    public class Table {

    public int n, p, c;
    public LinkedList<String> shuffle = new LinkedList<String>();
    public LinkedList<String> card = new...
  10. Replies
    1
    Views
    636

    How do I do this:

    I want to distribute a certain number of items to an indefinite number of recipients, how do I code it?
    I have this:

    item = getitem.items();
    LinkedList<String>[] distributedItems = new...
  11. Re: This Code worked on a separate class but does not work on another class

    @ ranjithfs1:
    I am trying to copy the whole method from another class to main. Even if I remove the return there is still error.
    "Multiple markers at this line
    - Syntax error on token(s),...
  12. This Code worked on a separate class but does not work on another class

    this one is working on: public class Table {

    public int player() {
    Scanner in = new Scanner(System.in);
    p = in.nextInt();
    return p;
    }

    but does not work on another class but under...
Results 1 to 12 of 12