/** * * @author YZJ * @Description java中定义常量的最佳方法 */ public final class Contants{ /** * @Description 私有化构造方法 */ private Contants(){}; public static final int contants1 = 1<<1; public static final int contants2 = 1<<2; public static final int c
GET (SELECT): Retrieve a specific Resource from the Server, or a listing of Resources. #从服务器检索特定的资源,或资源列表. POST (CREATE): Create a new Resource on the Server. #在服务器上创建新资源. PUT (UPDATE): Update a Resource on the Server, providing the entire Res
今天看到一个java类中定义了接口,写个备忘录,记录一下 package com.gxf.test; public class Test_interface { public interface show{ public void show(); } static class TestInterface implements show{ @Override public void show() { System.out.println("this is interface!"); }
图的接口定义 Graph public class UnsupportedOperation extends RuntimeException {public UnsupportedOperation(String err) {super(err);} } public interface Graph {public static final int UndirectedGraph = 0;//无向图public static final int DirectedGraph = 1;//有向图