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.
Type: Posts; User: Leonardo1143
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.
Oh okay so using 10 for my example should fix it?
I chose 27 because it was used in the example
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.
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...
Armor = parseInt("Armor", 27)
like that?
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)
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);
...
Where would I find the API document?
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?
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method parseInt(JTextField) is undefined for the type new ActionListener(){}
at...
import javax.swing.*;
import java.awt.event.*;
import java.util.Random;
public class SimpleWindow extends JFrame {
JLabel...