B2 Tech

Web Dev Snippets

  • Facebook
  • Twitter
  • Google Plus
  • Home
  • Java
    • Core Java
    • Core Java Programs
    • Java Swings
    • JavaFX
  • Web Technologies
    • Angular 10
    • Angular 2
    • Angular 9
    • Boostrap 4
    • CSS
    • Express.js
    • High Charts
    • HTML
    • Javascript
    • Javascript Programs
    • jQuery
    • Mongoose
    • Nodejs
    • Typescript
  • Full Stack Applications
    • CRUD Applications
  • Advance Java/J2EE
    • JSP
    • Servlets
    • JSF
    • Thymeleaf
    • Spring MVC
    • Spring Boot
    • Spring Security
    • JPA
    • Hibernate
    • Struts
    • MyBatis/iBatis
  • Interview Programs
  • Web Services
    • REST Services
    • SOAP Services
  • Testing
  • About
  • Contact

Author - Bushan Sirgur

  • Core Java Programs
  • Interview Programs
  • Javascript Programs

Pass two ints as parameter and return the sum of numbers.

2 months ago
by Bushan Sirgur
1 min read
Add Comment

Test cases: Test cases Expected Result sum(10,12) 22 OK sum(1,2) 3 OK sum(2147483647,1) 2147483648 OK Java solution: public class Sum { public static void main(String[] args) { Sum.sum(10, 12); Sum.sum(1...

Continue reading

  • CRUD Applications
  • REST Services
  • Spring Boot

Spring boot and MongoDB REST API CRUD Tutorial [Updated 2021]

3 months ago
by Bushan Sirgur
8 min read
Add Comment

Hey, guys in this, we will learn connecting the spring boot REST API that connects to the MongoDB database and we will perform the basic database operations like Create, Read, Update and Delete. Development steps Following are...

Continue reading

  • CSS
  • HTML
  • Javascript

Background color change – Javascript Beginner [01]

5 months ago
by Bushan Sirgur
3 min read
Add Comment

Hey guys, welcome to the javascript beginner project series. In this post, we will create a javascript project which changes the background color of the webpage on click of the button. This project is for absolute beginners, we...

Continue reading

  • CRUD Applications
  • Express.js
  • Mongoose
  • Nodejs
  • REST Services

Building REST API with Node.js, Express and MongoDB using Async and Await

5 months ago
by Bushan Sirgur
8 min read
Add Comment

Hey guys, in this post, we will be creating an end to end RESTful CRUD API with Node.js, Express, Mongoose, and MongoDB. Yes, we will use Mongoose for communicating with MongoDB. Express is a light-weight web application...

Continue reading

  • CRUD Applications
  • Express.js
  • Mongoose
  • Nodejs
  • REST Services

Building Restful CRUD API with Node.js, Express, Mongoose and MongoDB

5 months ago
by Bushan Sirgur
8 min read
Add Comment

Hey guys, in this post, we will be creating an end to end RESTful CRUD API with Node.js, Express, Mongoose, and MongoDB. Yes, we will use Mongoose for communicating with MongoDB. Express is a light-weight web application...

Continue reading

  • Core Java

Read the contents of 7z file without Unzip in Java

5 months ago
by Bushan Sirgur
2 min read
Add Comment

Hey guys, in the previous post we discussed about reading the contents of Zip file without unzipping using ZipFile. In this post, we will discuss about reading the contents of .7z file without unzipping it. so let’s...

Continue reading

  • Core Java

Read the contents of Zip file without Unzip in Java

5 months ago
by Bushan Sirgur
2 min read
Add Comment

Hey guys in this post, we will discuss reading the contents of a zip file using ZipFile package in Java. ZipFile is a java.util.zip, it provides some really useful methods and constructor for reading the zip file. let’s...

Continue reading

  • Express.js
  • Mongoose
  • Nodejs
  • REST Services

NodeJS, Express, Mongoose and MongoDB RESTful Web Service – DELETE Request

5 months ago
by Bushan Sirgur
1 min read
Add Comment

Hey guys, in the previous post we discussed about updating the document with HTTP PATCH request. In this post, we will discuss about deleting document with HTTP DELETE request. let’s begin In order to delete the document...

Continue reading

  • Express.js
  • Mongoose
  • Nodejs
  • REST Services

NodeJS, Express, Mongoose and MongoDB RESTful Web Service – PATCH Request

5 months ago
by Bushan Sirgur
2 min read
Add Comment

Hey guys, in our previous post we discussed about retrieving the documents from mongodb using GET request. so in this post we will discuss that updating the document using PATCH request. let’s begin… To update the...

Continue reading

  • Express.js
  • Mongoose
  • Nodejs
  • REST Services

NodeJS, Express, Mongoose and MongoDB RESTful Web Service – POST Request [Part 2]

5 months ago
by Bushan Sirgur
2 min read
Add Comment

Hey guys, welcome back to my blog. In my previous post we discussed about saving the document to mongodb database using save() method. But there are 2 more methods available to for saving the documents which create() and...

Continue reading

  • Express.js
  • Mongoose
  • Nodejs
  • REST Services

NodeJS, Express, Mongoose and MongoDB RESTful Web Service – GET Request

7 months ago
by Bushan Sirgur
3 min read
Add Comment

Hey in this article, we will discuss how to make HTTP GET requests using NodeJS and Express. In the previous post, we discussed the HTTP POST request, where we saved the data to the database. So we will use the same example which...

Continue reading

  • Express.js
  • Mongoose
  • Nodejs
  • REST Services

NodeJS, Express, Mongoose and MongoDB RESTful Web Service – POST Request [Part 1]

7 months ago
by Bushan Sirgur
7 min read
2 Comments

Hey guys, recently I get a chance to explore Nodejs and Express, in my opinion, I think NodeJS and Express is a great option for building restful web services because its easy, fast and you don’t have to learn a new...

Continue reading

  • Angular 9
  • Boostrap 4
  • CSS
  • HTML
  • Spring Boot

Angular 9 and Spring Boot CRUD Tutorial – Feature 6 sort expenses by name and amount

7 months ago
by Bushan Sirgur
3 min read
Add Comment

Hey in the previous post we discussed filtering expenses based on keyword, in this post, we will sort the expenses by expense name and amount. We will sort the expense name in ascending order and amount in descending order. So...

Continue reading

  • Angular 9
  • Boostrap 4
  • CSS
  • HTML
  • Spring Boot

Angular 9 and Spring Boot CRUD Tutorial – Feature 5 filter expenses by keyword

7 months ago
by Bushan Sirgur
3 min read
Add Comment

Hey in the previous post, we discussed deleting an expense, in this post let’s look at how to filter the expenses by keyword, meaning the user will enter the characters inside the textbox and we will filter the expenses...

Continue reading

  • Angular 9
  • Boostrap 4
  • CRUD Applications
  • CSS
  • HTML
  • JPA
  • REST Services
  • Spring Boot

Angular 9 and Spring Boot CRUD Tutorial – Feature 4 Delete expense details

7 months ago
by Bushan Sirgur
7 min read
Add Comment

Hey everyone, in the previous post we discussed updating the expense details, and in this post, we will discuss deleting an expense. we can delete expense from two different places, one is in the list expense page, where each...

Continue reading

  • Angular 9
  • Boostrap 4
  • CRUD Applications
  • CSS
  • HTML
  • JPA
  • REST Services
  • Spring Boot

Angular 9 and Spring Boot CRUD Tutorial – Feature 3 Update expense details

7 months ago
by Bushan Sirgur
6 min read
Add Comment

Hey in the previous post we covered saving the expense details to the database, in this post we will cover updating the expense details. We will continue with the same example which we created in the previous post. Let’s...

Continue reading

  • Angular 9
  • Boostrap 4
  • CRUD Applications
  • CSS
  • HTML
  • JPA
  • REST Services
  • Spring Boot

Angular 9 and Spring Boot CRUD Tutorial – Feature 2 Save the expense to database

7 months ago
by Bushan Sirgur
5 min read
2 Comments

Hey in this post, we will continue with the application which we created in our previous post. In this post, we will cover saving the expense record to the database. let’s begin… We will cover the following topics...

Continue reading

  • Angular 9
  • Boostrap 4
  • CRUD Applications
  • CSS
  • HTML
  • JPA
  • REST Services
  • Spring Boot

Angular 9 and Spring Boot CRUD Tutorial – Feature 1 Display list of records in browser

7 months ago
by Bushan Sirgur
10 min read
Add Comment

Hey in this post we will quickly create spring boot and angular 9 application and create rest endpoint to retrieve the list of records. We will also make HTTP GET requests from the angular application to the rest endpoint which...

Continue reading

  • Angular 9
  • Boostrap 4
  • CRUD Applications
  • CSS
  • HTML
  • JPA
  • REST Services
  • Spring Boot

Angular 9 and Spring Boot CRUD Tutorial – Introduction and Setup

8 months ago
by Bushan Sirgur
3 min read
1 Comment

Hey in this post, we will develop a full-stack web application using Angular 9 and Spring boot. We will connect this application to the MySQL database and perform the basic database operations like Create, Read, Update, and...

Continue reading

  • CRUD Applications
  • JPA
  • JSP
  • Spring Boot

Spring Boot Masterclass – Display the list of expense in JSP 08

8 months ago
by Bushan Sirgur
2 min read
Add Comment

Hello, in this post we will display the list of expenses in the JSP view template. Let’s begin. First, we need to add the dependency for the JSTL tag library in...

Continue reading

  • CRUD Applications
  • JPA
  • JSP
  • Spring Boot

Spring Boot Masterclass – Call service method and print data in console 07

8 months ago
by Bushan Sirgur
1 min read
Add Comment

Hello, in this post we will call the expense service method to get the list of expenses and print it in the console. let’s begin. Inside the MasterController modify the handler method...

Continue reading

  • CRUD Applications
  • JPA
  • JSP
  • Spring Boot

Spring Boot Masterclass – Create service and repository for Expense 06

8 months ago
by Bushan Sirgur
1 min read
4 Comments

Hello, in this post we will create Service and Repository for Expense. Let’s begin. First, create an ExpenseRepository under src/main/java/in/bushansirgur/expenseyoutube/repository...

Continue reading

  • CRUD Applications
  • JPA
  • JSP
  • Spring Boot

Spring Boot Masterclass – Create an entity class for Expense 05

8 months ago
by Bushan Sirgur
1 min read
Add Comment

Hello, in this post we will create an entity class for Expense. let’s begin. Create a class Expense under src/main/java/in/bushansirgur/expenseyoutube/model package We will use Lombok annotations @Setter, @Getter to...

Continue reading

  • CRUD Applications
  • JPA
  • JSP
  • Spring Boot

Spring Boot Masterclass – Configure the JSP view template 03

8 months ago
by Bushan Sirgur
2 min read
4 Comments

In this post, we will configure the JSP view template in the Spring boot application. let’s begin. First, we need to add a dependency in pom.xml in order to use the JSP as a view template in Spring boot...

Continue reading

  • CRUD Applications
  • JPA
  • JSP
  • Spring Boot

Spring Boot Masterclass – Setup the MySQL database 02

8 months ago
by Bushan Sirgur
1 min read
2 Comments

Hello in this post, we will set up the MySQL database and we configure the data source in the spring boot project. let’s begin. Create a MySQL database, CREATE DATABASE ecom; Execute the query to create the expense...

Continue reading

  • CRUD Applications
  • JPA
  • JSP
  • Spring Boot

Spring Boot Masterclass – Create Spring Boot Project using Spring Initializer 01

8 months ago
by Bushan Sirgur
3 min read
Add Comment

Hi in this post, we will create a Spring boot project using spring initializer Add the following dependencies to the pom.xml pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns=""...

Continue reading

  • Core Java Programs
  • Interview Programs

Interview Program – Matrix

January 12, 2020
by Bushan Sirgur
1 min read
1 Comment

Print matrix in Z form. Input: mat[][] = {1, 2, 3, 4, 5, 6, 7, 8, 9} Output: 1 2 3 5 7 8 9 public class PrintTheMatrixOrder { public static void printTheMatrix(int mat[][]) { for (int i = 0; i < mat.length; i++)...

Continue reading

  • Core Java Programs
  • Interview Programs

Interview Program

January 12, 2020
by Bushan Sirgur
1 min read
Add Comment

Print all jumping numbers smaller than or equal to x. Input: x = 105 Output: 0 1 2 3 4 5 6 7 8 9 10 12 21 23 32 34 43 45 54 56 65 67 76 78 87 89 98 101 Note: A number is called as a jumping number if all adjacent digits in it...

Continue reading

  • Core Java Programs
  • Interview Programs

Interview Program – Matrix

January 12, 2020
by Bushan Sirgur
1 min read
Add Comment

Find if there is a rectangle in binary matrix with corners as 1. Input: mat[][] = {{1, 0, 0, 1, 0}, {0, 0, 1, 0, 1}, {0, 0, 0, 1, 0}, {1, 0, 1, 0, 1}} Output: YES Note: as there exists –             1 0 1        ...

Continue reading

  • JavaFX

JavaFX and MySQL Video Course

January 12, 2020
by Bushan Sirgur
1 min read
Add Comment

Related posts: Login Form in JavaFX with MySQL Database Spring Boot, Hibernate and MySQL Web Application Video Course Spring Boot, Hibernate and MySQL REST API Video Course Angular 9 and Spring Boot CRUD Tutorial –...

Continue reading

Previous 1 2 3 4 5 Next

About Author

Bushan Sirgur

Well, I am Bushan Sirgur from Banglore, India. Currently, I am working as a Software Developer in a Service Base Company. I am interested in JAVA/J2EE, Angular 2, JavaScript, jQuery, MongoDB.

View all posts

Support me


Love my tutorials? Please support me by donating:

Newsletter



Recent Posts

  • Access Modifiers in Java with Examples March 2, 2021
  • Convert JSON String into Javascript Object March 1, 2021
  • Convert Javascript Object into a JSON String March 1, 2021
  • Spring Boot REST API Testing using JUnit February 26, 2021
  • Spring boot @Bean annotation with example February 25, 2021
  • Spring boot @Autowire annotation with example February 23, 2021
  • Top 20 commonly used Javascript array methods with examples February 20, 2021
  • Spring boot @RequestMapping annotation with example February 18, 2021
  • Spring Boot, PostgreSQL, JPA, Hibernate RESTful CRUD API Example February 17, 2021
  • Spring boot @ResponseBody annotation with example February 16, 2021

Featured Posts

  • Access Modifiers in Java with Examples
  • Convert JSON String into Javascript Object
  • Convert Javascript Object into a JSON String
  • Spring Boot REST API Testing using JUnit
  • Spring boot @Bean annotation with example

Most Viewed Posts

  • Angular 2 and Spring REST Simple CRUD Application (16,528)
  • Login Form in JavaFX with MySQL Database (15,694)
  • A Complete CRUD Application with Spring MVC and MyBatis/iBatis (14,100)
  • Calculate AGE based on Date of birth using jQuery Calendar (11,227)
  • Complete CRUD Application in Spring MVC and Hibernate [XML Configuration] (10,917)

Categories

  • Angular 10 (2)
  • Angular 2 (2)
  • Angular 9 (7)
  • Boostrap 4 (9)
  • Core Java (14)
  • Core Java Programs (33)
  • CRUD Applications (33)
  • CSS (12)
  • Express.js (7)
  • Hibernate (12)
  • High Charts (3)
  • HTML (13)
  • Interview Programs (33)
  • Java Swings (4)
  • JavaFX (2)
  • Javascript (13)
  • Javascript Programs (20)
  • JPA (21)
  • jQuery (7)
  • JSP (16)
  • Mongoose (7)
  • MyBatis/iBatis (2)
  • Nodejs (7)
  • REST Services (30)
  • Servlets (2)
  • SOAP Services (1)
  • Spring Boot (40)
  • Spring MVC (21)
  • Testing (1)
  • Uncategorized (2)
Copyright © 2021. Created by Bushan Sirgur. Powered by B2 Tech.
  • Facebook
  • Linkedin
  • Instagram
  • Youtube
  • Github
  • Home
  • Java
    • Core Java
    • Core Java Programs
    • Java Swings
    • JavaFX
  • Web Technologies
    • Angular 10
    • Angular 2
    • Angular 9
    • Boostrap 4
    • CSS
    • Express.js
    • High Charts
    • HTML
    • Javascript
    • Javascript Programs
    • jQuery
    • Mongoose
    • Nodejs
    • Typescript
  • Full Stack Applications
    • CRUD Applications
  • Advance Java/J2EE
    • JSP
    • Servlets
    • JSF
    • Thymeleaf
    • Spring MVC
    • Spring Boot
    • Spring Security
    • JPA
    • Hibernate
    • Struts
    • MyBatis/iBatis
  • Interview Programs
  • Web Services
    • REST Services
    • SOAP Services
  • Testing
  • About
  • Contact
  • Facebook
  • Twitter
  • Google Plus