原创 在java程序中寫測試程序的兩種情況?

1、在IDEA,項目中是存在專門搞測試的地方 如下:(src—>test)這個裏面是專門寫測試的。 2、如果你想要在Controller程序寫一個測試程序 如果你想在ApproximateController.java中寫一個測試方法,

原创 JavaScript的三種輸出方式

1.在瀏覽器頁面上輸出信息。document是文本,write寫,頁面其實就是一個文本。 document.write("hello,I am browse!"); 2.在控制檯輸出信息。console:控制檯 console.log

原创 連續子數組的最大和(java)

題目:Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum

原创 跳着玩 (Jump Game II) 動態規劃 詳細思路

題目:Given an array of non-negative integers, you are initially positioned at the first index of the array.            Ea

原创 電話號碼的字母組合(Letter Combinations of a Phone Number)

題目:Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could r

原创 判斷兩顆樹是否相同(Same Tree)

題目:Given two binary trees, write a function to check if they are the same or not.Two binary trees are considered the sa

原创 JavaScript的三種寫入位置,以及a,input,button的如何使用js?

1、js的三種寫入位置      (1)直接在html中寫js <a href="javascript:;">我是啥操作都沒有</a> <a href="javascript:alert('我可是超鏈接~~~');">我是超鏈接1</a

原创 螺旋矩陣(Spiral Matrix)最容易理解的思路

題目:Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.  輸入: Input

原创 三角形(Triangle)動態規劃 詳細思路

題目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the ro

原创 MySql筆記01

1.怎麼使用終端登錄mysql數據庫? mysql -uroot -p123456    2.怎麼查詢mysql數據庫中包含的數據庫? show databases;    3.怎麼使用具體數據庫?   use (具體數據庫名);

原创 IDEA中web.xml配置bug之(The content of element type "web-app" must match)如何解決?

錯誤信息如下: The content of element type "web-app" must match "(icon ,display- name ,description ,distributable ,context-pa

原创 關於MySQL的各種問題之如何去查看電腦上是否安裝了MySQL? 01

如何去查看電腦上是否安裝了MySQL? 答:直接搜索(控制面板)--> (系統和安全) --> (管理工具) --> ( 服務) --> 查看是否存在MySQL(如下圖紅線所劃)? 存在, 即 :已安裝 。 否者, 即 :沒有安裝。

原创 關於MySQL的各種問題之如何下載MySQL? 02

如何下載MySQL? 1.直接在百度輸入 “mysql下載“ ,點擊下圖劃橫線的部分。 2.   當你點擊進入之後,如下圖   ①: 代表你的操作系統  ② :可以查找以前的MySQL版本  ③ : MySQL最新版本   3.如果你

原创 連接mysql數據庫

package com.Db;   import java.sql.*;   public class ADB {  //驅動名  static String Driver = "com.mysql.jdbc.Driver";  //ur

原创 SQL server數據庫的設置ID,當你插入一條數據時,ID自增

以sqlserver2008R2數據庫爲例。可以用如下方法: 1、先建表: 2、在圖形界面,找到business表: 3、右鍵此表名,選擇“設計”。 4、右側出現的頁面,找到要設置主鍵的列,ID列,然後右鍵,選擇“設置主鍵”。 5、下面