Question: Create a Java class with name: Assignment1 Create the main() method in this class In the main() method do Declare two variables of types int
- Create a Java class with name: Assignment1
- Create the main() method in this class
- In the main() method do
- Declare two variables of types int and double respectively, and then initialize them.
- Print the values of the two variables using two println() statements.
- Show one use of the if statement.
- Use one for-loop statement to output the following rectangle of stars.
**********
**********
**********
At the beginning of your program, provide the following information
Assignment number:
Programmer name:
Due date:
Program file name: Welcome.java (for say)
Comments: should describe what your programs want to do. There are usually five types of comments on
- classes, telling what they do
- variables, telling their meanings
- methods, showing their purposes
- algorithms, describing their goals and key steps
- a piece of code, showing its purpose and key steps
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
