小编Ben*_*der的帖子

如何在Eclipse控制台窗口中显示unicode字符?

我正在创建一个小型Java应用程序,该应用程序使用Unicode字符在Eclipse Keplar的控制台窗口中创建框的行和列。我的代码可以正常工作,但是我打印的每个Unicode字符的输出都是一个小框,而不是我要打印的Unicode字符。

我的代码如下。我有两节课。

我的主班:

package assign03;

import java.util.Scanner;

public class Assign03 {

private static int columns;
private static int cWidth;
private static int rows;
private static int rHeight;
private static Table table;

public static void main(String[] args) {
        table = new Table();
        Scanner input = new Scanner(System.in);

        System.out.print("Enter the number of columns: ");
        columns = input.nextInt();

        System.out.print("Enter the width of the columns: ");
        cWidth = input.nextInt();

        System.out.print("Enter the number of rows: ");
        rows = input.nextInt();

        System.out.print("Enter the width of the …
Run Code Online (Sandbox Code Playgroud)

java eclipse unicode

6
推荐指数
2
解决办法
7452
查看次数

如何从SELECT AS在Oracle 11g R2中创建表并按范围列表对表进行分区?

我正在尝试从名为Titles的现有表创建一个名为Titles2的新表.我必须使用SELECT AS语句从Titles中创建Titles2中的列.我还必须按RANGE分区Titles2,然后按LIST分区.

用于创建标题的代码:

SQL> CREATE TABLE Titles
  2    (
  3    Title_id         char(3)     ,
  4    Title            varchar2(40),
  5    Genre            varchar2(10),
  6    Pages            number      ,
  7    Price            number(5,2) ,
  8    Sales            number      ,
  9    Pub_id           char(3)     ,
 10    Pubdate          date        ,
 11    Advance          number(9,2) ,
 12    Royalty_rate     number(5,2) ,
 13    CONSTRAINT Titles_pk PRIMARY KEY (title_id),
 14    CONSTRAINT Titles_Publishers_fk FOREIGN KEY (Pub_id)
 15                             REFERENCES Publishers (pub_id)
 16    )
 17    PARTITION BY RANGE (Pubdate) (
 18    PARTITION P1 VALUES LESS THAN (TO_DATE('01-JAN-1995', 'DD-MON-YYYY')) TABLESPACE …
Run Code Online (Sandbox Code Playgroud)

sql oracle oracle11gr2

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

eclipse ×1

java ×1

oracle ×1

oracle11gr2 ×1

sql ×1

unicode ×1