This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.annotation.WebServlet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cloud.mongodb.com | |
| ====connection string below================== | |
| mongodb+srv://<username>:<password>@foodhub-r1hab.mongodb.net/test?retryWrites=true&w=majority |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://jsonlint.com/ | |
| https://codverter.com/src/jsonvalidator | |
| { | |
| "account number":{ | |
| "account number":2323, | |
| "first name":"john", | |
| "last name":"smith", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =====================html======================= | |
| <!DOCTYPE html> | |
| <!-- | |
| To change this license header, choose License Headers in Project Properties. | |
| To change this template file, choose Tools | Templates | |
| and open the template in the editor. | |
| --> | |
| <html> | |
| <head> | |
| <title>compute loan</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>factorial</title> | |
| </head> | |
| <body> | |
| <% for(int i = 0;i<=10;i++){%> | |
| factorial of <%=i%> is | |
| <%=computeFactorial(i)%><br/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ----------------------------------------EXERCISE 10----------------------- | |
| alter user hr account unlock; | |
| alter user hr identified by hr; | |
| select * from hr.employees; | |
| set serveroutput on | |
| create or replace trigger display_salary_changes | |
| before insert on hr.employees | |
| for each row |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------dbtest.java-------------------- | |
| in net beans---------------- | |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package preparedtest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------use mysql workbench-- | |
| --------------dbTest.java------------ | |
| ===============create in net beans============= | |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package javaapplication1; | |
| import java.sql.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const mongodb= require('mongodb'); | |
| const app =express(); | |
| app.use(express.json()); | |
| const books=[ | |
| {title:'harry potter',id:1}, | |
| {title:'twilight',id:2}, | |
| {title:'lorien',id:3} | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmd....C:\temp\node>npm install mongodb | |
| const express = require('express'); | |
| const mongodb= require('mongodb'); | |
| const app =express(); | |
| app.use(express.json()); | |
| const books=[ | |
| {title:'harry potter',id:1}, |
NewerOlder