Search:

Type: Posts; User: Leonardo1143

Search: Search took 0.17 seconds.

  1. Re: Need to input algorithems with String values.

    Okay, now i am bit confused. So I may just go the longer route and just individually label the parts I need for my algorithm to work (armor,combat level,etc). Thanks for trying though.
  2. Re: Need to input algorithems with String values.

    Oh okay so using 10 for my example should fix it?
  3. Re: Need to input algorithems with String values.

    I chose 27 because it was used in the example
  4. Re: Need to input algorithems with String values.

    That was the whole error message and No I don't know what the radix was I was basing it off the API's example.
  5. Re: Need to input algorithems with String values.

    I thought the second arg,27, was for radix? The API used that as an example.
    "Exception in thread "main" java.lang.Error: Unresolved compilation problem:

    at...
  6. Re: Need to input algorithems with String values.

    Armor = parseInt("Armor", 27)


    like that?
  7. Re: Need to input algorithems with String values.

    So how would I go about assigning the string value of armor to an int? Like I said


    parseInt("Kona", 27) returns 411787

    returns a value but when I try


    parseInt("Armor", 27)
  8. Re: Need to input algorithems with String values.

    Okay I read it and don't completely understand it. If I have a string value, like armor, Do i put it in like this?


    Integer.parseInt(Armor);
    ...
  9. Re: Need to input algorithems with String values.

    Where would I find the API document?
  10. Re: Need to input algorithems with String values.

    Sorry it seems I was supposed to use "Integer.parseInt()". But how would I go about changing something like armor, a string, to 25, an int value, using this?
  11. Re: Need to input algorithems with String values.

    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    The method parseInt(JTextField) is undefined for the type new ActionListener(){}

    at...
  12. Need to input algorithems with String values.

    import javax.swing.*;
    import java.awt.event.*;
    import java.util.Random;

    public class SimpleWindow extends JFrame {

    JLabel...
Results 1 to 12 of 12