Search:

Type: Posts; User: Purple01

Page 1 of 4 1 2 3 4

Search: Search took 0.16 seconds.

  1. Replies
    4
    Views
    1,267

    Re: Java Program help cleanup

    If you use these code multiple times.



    try {//try catch block for exception handeling
    System.out.printf("Enter Midterm grade for: %s %s ", grad.getFirstname(),...
  2. Re: Having trouble storing variable from JTextField

    Does your program also gives out those huge error messages?
    Like, error: cannot find symbol method getText()
    and then below that is writen what line etc etc.

    (I will be back later, need to...
  3. Re: Having trouble storing variable from JTextField

    Can you post the error message?
    That usually tells everything.
  4. Re: Having trouble storing variable from JTextField

    I just adjusted my post. :p
  5. Re: Having trouble storing variable from JTextField

    Can you maybe tell us at what line the error is located?

    * EDIT *

    If the problem is in the line:



    String name1;
    name1 = nameField.getText();
  6. Replies
    9
    Views
    1,388

    [SOLVED] Re: How print " in output?

    Thanks for letting me know that. :)
    I also noticed that by splitting .. you also need those \\ things before it.
  7. Replies
    9
    Views
    1,388

    [SOLVED] Re: How print " in output?

    That is a letter I pulled out of an arrayList.



    for (int x = 0; x < arrayList_Chrom.size(); x++) {
    String Chr = arrayList_Chrom.get(x);
    }
  8. Replies
    9
    Views
    1,388

    [SOLVED] Re: How print " in output?

    I will mind the capital letter next time yes. :)
    Chr and chr are the same, I will adjust that in my post.
  9. [SOLVED] How convert sting name as an arrayList name?

    I have a small problem that I am unsure on how to solve this.
    I have a arrayList (arrayList_Chrom) with numbers/letters in it: 1, 2, 3 ...... 22, X, Y, M

    Now I have made this for loop:

    ...
  10. Replies
    9
    Views
    1,388

    [SOLVED] Re: How print " in output?

    Thanks for that. :)
    Then the next question, how do I print a value behind it.
    Like:



    String Chr = Y;

    "\"Purple" + Chr"\"
  11. Replies
    9
    Views
    1,388

    [SOLVED] How print " in output?

    Does anyone know how to print the "in an output line?
    Like I want my output link to be: name = "Purple"
  12. Replies
    2
    Views
    1,242

    How to end a subclass?

    Does anyone how to end a subclass?

    I have a subclass with an if else loop.
    But now I want when the else loop is activated, it need to end that subclass.
  13. [SOLVED] Re: Syntax error on token "extends", throws expected

    I solved it.
    I used the subclass whitout the extends.
    So public static void calculate() {
    And then I would let the program run that subclass when het needs to calculate something.
    And it...
  14. [SOLVED] Re: Syntax error on token "extends", throws expected

    The thing is I have a file that I read line by line (in the class readResearchfile)
    But I have to make the same calulation over and over again for certain parts, and in diffrent loops.
    So I was...
  15. [SOLVED] Syntax error on token "extends", throws expected

    I have made this subclass:



    public static void cacluate() extends readResearchfile {
    //
    }


    But it gives me this error: Syntax error on token "extends", throws expected
  16. Replies
    5
    Views
    1,257

    Re: Calculate total earning of a worker

    I asume you have an program where you write the code with, like eclipse.
    If you run the code and it works without errors it will be good for every computer with that system. (like if you use...
  17. Replies
    3
    Views
    1,211

    Re: Home assignment

    Show us your code, and ask questions about it.
    Then we can help you solving your question.

    Now it looks like you want us to do your homework....
    And that is not where this forum is for.
    On...
  18. Replies
    5
    Views
    1,257

    Re: Calculate total earning of a worker

    What is your question you need help with?
  19. Replies
    0
    Views
    1,185

    [SOLVED] .equals doesn't work?

    I have a problem with my code but I realy don't know why it doesn't work...
    I have a string, named: chr1 (size = 4)
    chr = chr.1



    String str = chr;

    if (chr.equals("chr1")) {...
  20. Replies
    2
    Views
    1,351

    Re: While loop only runs one time?

    I found the solution.
    Thanks for the help you gave. :)
  21. Replies
    2
    Views
    1,351

    While loop only runs one time?

    I have a arrayList with multiple entries.
    And I would like to grab the first entry and the look in a file and grab a certain line.
    After that I would like to grab the second entry from the...
  22. Replies
    5
    Views
    1,971

    Re: Simple java beginners question (for school)

    So your desired output would be OLLEH?

    If don't know if this helps, but you can also take letters separate out of it.
    That might be another way of solving it. (There are multiple ways to Rome...
  23. Replies
    1
    Views
    1,270

    Re: Line string problem

    I think you maybe can use 'contains' to look for the lines that have a "account" in the line.
    And after that you can use the split() functiion to grab the word you need.

    Good luck.
  24. Replies
    8
    Views
    5,666

    Re: get the average of the linked list

    You counld start on how to input the number into your program.

    Try googling the Scanner function.
    That one might help. :)
  25. Replies
    13
    Views
    2,620

    Re: Creating a close button

    If you have a panel/frame with a JButton on it.
    And when it is clicked it will close the whole program.
    To do this as said by other poster you need to use the System.exit(0);
    It will idd close...
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4