#How to convert a string into a specific class object?
31 messages ยท Page 1 of 1 (latest)
โ This post has been reserved for your question.
Hey @obtuse cave! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
because for c it has to be a category array, or it won't let me store it into the CategorizedItemsArray. So I need it to be converted into CategoryArray instead of a String.
and .getText() is from getting the JFrame text field
then you need to turn it into a CategoryArray?????
why would you think we can help you with the minimal info you've given lol
i don't even know what "for c" is
yes, need to turn the String into CategoryArray
by c, i meant this. it's highlighted in yellow
as if we know what that is lol
over here, highlighted in yellow
it can't store type String, it has to be type CategoryArray
yes, it is my own class
then how do you expect us to know when you've shown literally none of it ๐
here
here it is
and from CategorizedItemsArray, i included the CategoryArray as an argument
so it doesn't match 1:1 to a string
how do you think the string should be turned into that
what ever it is, implement that
ask about help with the implementation
you are providing far too little info nor effort for anyone to actually help you
i have no idea how to implement that, that's why
i'm a beginner at this