能帮小弟我解决上这个bug吗能帮小弟我解决上这个bug吗
能帮我解决下这个bug吗
IDE 提示: error: class PriorityQApp is public, should be declared in a file named PriorityQApp.java public class PriorityQApp {
可是我已经写了 public 了啊
////////////////////////////////////////////////////////////////
class Link {
public lon...
能帮小弟我解决上这个bug吗
能帮我解决下这个bug吗
IDE 提示: error: class PriorityQApp is public, should be declared in a file named PriorityQApp.java public class PriorityQApp {
可是我已经写了 public 了啊
////////////////////////////////////////////////////////////////
class Link {
public long dData; // data item
public Link next; // next link in list
// -------------------------------------------------------------
public Link(long dd) // constructor
{
dData = dd;
}
// -------------------------------------------------------------
public void displayLink() // display this link
{
System.out.print(dData + );
}
} // end class Link
// //////////////////////////////////////////////////////////////
class SortedList {
private Link first; // ref to first item
// -------------------------------------------------------------
public SortedList() // constructor
{
first = null;
}
// -------------------------------------------------------------
public boolean isEmpty() // true if no links
{
return (first == null);
}
// -------------------------------------------------------------
public void insert(long key) // insert, in order
{
Link newLink = new Link(key); // make new link
Link previous = null; // start at first
Link current = first;
// until end of list,
while (current != null key current.dData) { // or key current,
previous = current;
current = current.next; // go to next item
}
本文档为【能帮小弟我解决上这个bug吗】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。