Recursion

Loops

While Loop

while (condition)…

Hello World

class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}

How “Hello, World” Works in Java

// Your First Program

Java Classes/Objects

Parameters and Arguments

  • String - stores text, such as "Hello". String values are surrounded by double quotes.
  • int - stores integers (whole numbers), without decimals, such as 123 or -123.
  • float - stores floating point…

Java Conditions

  • Less than: a < b
  • Less than or equal to: a <= b
  • Greater than: a > b
  • Greater than or equal to: a >= b
  • Equal to: a == b
  • Not Equal to: a != b

Java Arrays

String[] cars;
node *name of file you want to run in Node*
$ npm install express --save
npm install --save-dev nodemon

Adding MongoDB

npm install --save mongoose
npm install --save multer

Importing and using Mongoose

const mongoose = require('mongoose');
const postSchema = mongoose.Schema({*Input Schema*});

Soumyadip

HTML, CSS, Angular and Java amateur at 16 years old. Is also learning UI/UX design as an encore.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store