我在DataInputStream这里查看java文档:http://docs.oracle.com/javase/7/docs/api/java/io/DataInputStream.html
我期待看到它的方法做,我看的描述readBoolean(),readByte(),readChar()等.
这些描述都是这样的:
请参阅DataInput的readBoolean方法的常规协定.
并在扩展的解释中.
public final boolean readBoolean()
throws IOException
See the general contract of the readBoolean method of DataInput.
Bytes for this operation are read from the contained input stream.
Specified by:
readBoolean in interface DataInput
Returns:
the boolean value read.
Throws:
EOFException - if this input stream has reached the end.
IOException - the stream has been closed and the contained input stream does not support …Run Code Online (Sandbox Code Playgroud) 我试图在PHPMyAdmin中运行此SQL查询:
--create a mysql contact table
--delete contact table if already exists
DROP TABLE IF EXISTS contact;
--create new table named contact with fields as specified
CREATE TABLE contact(
contactID int PRIMARY KEY,
name VARCHAR(50),
company VARCHAR(30),
email VARCHAR(50)
);
--add these to the table
INSERT INTO contact VALUES (0, 'Bill Gates', 'Microsoft', 'bill@micro.com');
INSERT INTO contact VALUES (1, 'Larry Page', 'Google', 'larry@google.com');
--displays whats in this
SELECT * FROM contact;
Run Code Online (Sandbox Code Playgroud)
我认为在sql中这被认为是评论: --I'm a comment
但PHPMyAdmin不接受它.
我收到此错误:
SQL query:
--create …Run Code Online (Sandbox Code Playgroud) 我想为我的页面制作一个标题作为顶部的栏。问题是它没有到达页面的边缘。它周围有一个白色边框。
这是我原来的 css 代码。它没有用。
header {
background-color: #2E2E2E;
color:white;
text-align:center;
}
Run Code Online (Sandbox Code Playgroud)
我试着让它更大,但它所做的只是让它更长,所以你必须滚动才能看到它。它没有到达页面的边缘。
我尝试了一些研究,并在下面看到了类似的解决方案。没有一个工作。
margin:0;
padding:0;
width:100%;
Run Code Online (Sandbox Code Playgroud)
有没有什么简单的方法可以做到这一点,我错过了?