Java Variable Initialization and Data Types Explained

This is a little project or lab for Java. This is to learn how to define and initialize/assign a value to a variable. Java seems to be more specific than Python. With that said, if you want to define a variable and initialize a value of a string to that variable, you have to spell it out like String title(variable = (initialize) " Bands of Brothers"( a little grammatical error here, a string). Also, int is an integer just like in Python. However, when we get to assigning a float. If you assign a decimal number, it only allows 21 to 21, something like that. If you use the double "method", it gives you more digits, from my understanding. When you create a document, the public class has to match the file name as well. It's like bash, case sensitive, and similar to Python. Practice makes perfect! Happy learning everyone. #python #html #java #softwaredeveloper #softwareengineers #it #programming #softwaredevelopment

  • text

To view or add a comment, sign in

Explore content categories