小编use*_*183的帖子

#1146 - 表'phpmyadmin.pma__tracking'不存在

在phpMyadmin中打开我的任何数据库时遇到问题我尝试删除了许多旧的,不相关的数据库,并且可能在此过程中删除了我不应该拥有的内容,并且想知道我可以做些什么来解决错误

#1146 - 表'phpmyadmin.pma__tracking'不存在

sql phpmyadmin

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

从子类调用重写的超类方法

public class F {
    protected int a=0, b=0;
   public F() {
     a = 2;
     b = 2;
     }
  public void increase() {
     upA();
  } 
  public void upA() {
     a = a + 1;
  }
  public String toString() {
     return a+" "+b;
   }
 }
Run Code Online (Sandbox Code Playgroud)
 public class G extends F {
      public void increase() {
            super.increase();
            upB();
      }
     public void upA() {
            a = a + a;
     }
     public void upB() {
          b = b + 1;
   }
 }
Run Code Online (Sandbox Code Playgroud)

以下Java片段在"输出"窗口中打印了什么?

 G g …
Run Code Online (Sandbox Code Playgroud)

java inheritance overriding

2
推荐指数
1
解决办法
114
查看次数

如何克服这个演员异常?

我收到一个强制转换错误(无法从字符串转换为工作站),我怎么能克服这个问题,因为我需要在其他方法中使用startStation作为参数:

Station startStation;
startStation = (Station)(view.getStartStation());
Run Code Online (Sandbox Code Playgroud)

这是Station班级:

    public class Station {

// The name of the station.
private String name;

public Station(String name) {
    if (name == null) {
        throw new NullPointerException(
                "The name of a station may not be null");
    }
    this.name = name;
}
Run Code Online (Sandbox Code Playgroud)

这是我的getStartStation()方法:

 public String getStartStation() {
    return startStation.getText();
}
Run Code Online (Sandbox Code Playgroud)

java casting object

0
推荐指数
1
解决办法
65
查看次数

标签 统计

java ×2

casting ×1

inheritance ×1

object ×1

overriding ×1

phpmyadmin ×1

sql ×1