Skip to content

Instantly share code, notes, and snippets.

View parveen999's full-sized avatar
🎯
Focusing

Parveen kaur parveen999

🎯
Focusing
View GitHub Profile
/*
* 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;
cloud.mongodb.com
====connection string below==================
mongodb+srv://<username>:<password>@foodhub-r1hab.mongodb.net/test?retryWrites=true&w=majority
https://jsonlint.com/
https://codverter.com/src/jsonvalidator
{
"account number":{
"account number":2323,
"first name":"john",
"last name":"smith",
=====================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>
<html>
<head>
<title>factorial</title>
</head>
<body>
<% for(int i = 0;i<=10;i++){%>
factorial of <%=i%> is
<%=computeFactorial(i)%><br/>
----------------------------------------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
------------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;
---------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.*;
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}
]
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},