Java own Variables #21497
Answered
by
ProgrammingKiwi
ProgrammingKiwi
asked this question in
General
-
Hey, I’m relatively new in creating own data types? in Java. For example i want to make a variable, which contains a String and a number. public StringNumber(String st, int number) { With this Code I can make something like this: StringNumber sn = new StringNumber(“test”, 0); My Problem is, that i don’t know how I can get the String out of it, like sn.getString(); Ty for reading and eventually helping ^^ |
Beta Was this translation helpful? Give feedback.
Answered by
ProgrammingKiwi
May 11, 2020
Replies: 1 comment
-
Nvm i found out how it is working |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nvm i found out how it is working