Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takshakmudgal/learning-java
https://github.com/takshakmudgal/learning-java
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/takshakmudgal/learning-java
- Owner: takshakmudgal
- Created: 2023-11-14T06:30:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-01T20:21:09.000Z (about 1 year ago)
- Last Synced: 2024-11-06T13:33:27.737Z (about 2 months ago)
- Language: Java
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Notes
- The main method is like a magical spell or incantation used to make the program work.
- **`println` ‘**printline**’** statement is used to add a new line space for the next output, we can also use \n to move the cursor to the next line.
- Different Data Types and their sizes.![Data Types](https://i.imgur.com/FjS9lfm.png)
- **String** are of **reference** datatype that’s why they are capitalized.
- The **`nextLine()`** method in **Scanner** checks the next line for the String input.
- **`JOptionPane.*showInputDialog*()`** & *`showMessageDialog()`* are some of the GUI methods available in `javax.swing.JOptionPane` liberary, and can be used to take input and display. There are more such GUI methods which can be used to make your program more Interactive.