Aprendiendo a modificar el tipo de variable en java ['ESP' ,'ENG']
Hoy aprendí una nueva manera de cambiar el tipo del contenido de la variable, si por ejemplo uno posee un tipo de valor entero dentro de una variable, lo puede convertir a una cadena de texto o un doble. Esto lo aprendí con variables primitivas a las cuales se le puede sobrescribir el contenido y me dejo sorprendido el poder de Java.
Today I learned a new way to change the type of the content of the variable, if for example one has an integer value type inside a variable, you can convert it to a text string or a double. I learned this with primitive variables whose content can be overwritten and I was surprised by the power of Java.
I have been programming with JavaScript for a few years and doing it in this programming language is easy, because it gives a lot of freedom, but in Java, which is more strict with its content, everything changes and although you can use methods in JavaScript, it is worth learning that they exist. other ways to handle data. This type of conversion allows you to alter the data type in a somewhat implicit way compared to the methods that transform, for example, an integer to a text string “toString()”.
0
0
0.000
Congratulations @dobro2020! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
Your next target is to reach 18000 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Check out our last posts:
Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!
Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).
You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.