我下面这个教程在这里创建一个JDBC编程。我已经按照控制台命令的步骤启动服务器:
// For Windows
cd {path-to-mysql-bin} // Check your MySQL installed directory
mysqld --console
Run Code Online (Sandbox Code Playgroud)
我收到以下错误消息:
mysqld: Can't change dir to 'C:\Program Files\MySQL\MySQL Server 5.7\data\' (Errcode: 2 - No such file or directory)
2017-01-06T10:54:36.968210Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-01-06T10:54:36.968210Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2017-01-06T10:54:36.968210Z 0 [Note] mysqld (mysqld 5.7.17) starting as process …Run Code Online (Sandbox Code Playgroud) 我正在创建一个小的Java游戏,它从一个原始数据(使用Random().nextInt())类型列表中随机选择,并询问哪个类型更大(或者它们是否相同).我也做了这样,如果选择相同的原始数据类型,则random.nextInt()再次调用以确保选择不同.
我现在的麻烦在于测试代码的工作原理.下面是Game.class:
static final PrimitiveDataType BOOLEAN_TYPE = new PrimitiveDataType("boolean", 0);
static final PrimitiveDataType BYTE_TYPE = new PrimitiveDataType("byte", 8);
static final PrimitiveDataType SHORT_TYPE = new PrimitiveDataType("short", 16);
static final PrimitiveDataType CHAR_TYPE = new PrimitiveDataType("char", 16);
static final PrimitiveDataType INT_TYPE = new PrimitiveDataType("int", 32);
static final PrimitiveDataType LONG_TYPE = new PrimitiveDataType("long", 64);
static final PrimitiveDataType FLOAT_TYPE = new PrimitiveDataType("float", 32);
static final PrimitiveDataType DOUBLE_TYPE = new PrimitiveDataType("double", 64);
static List<PrimitiveDataType> PRIMITIVE_TYPES = Arrays.asList(BOOLEAN_TYPE, BYTE_TYPE, SHORT_TYPE, CHAR_TYPE,
INT_TYPE, LONG_TYPE, …Run Code Online (Sandbox Code Playgroud)