hellombean.java

来自「jdk 6.0的api文档...很难找到哦」· Java 代码 · 共 23 行

JAVA
23
字号
/* HelloMBean.java - MBean interface describing the management   operations and attributes for the Hello World MBean.  In this case   there are two operations, "sayHello" and "add", and two attributes,   "Name" and "CacheSize". */package com.example.mbeans;public interface HelloMBean {    // operations    public void sayHello();    public int add(int x, int y);    // attributes    // a read-only attribute called Name of type String    public String getName();    // a read-write attribute called CacheSize of type int    public int getCacheSize();    public void setCacheSize(int size);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?