⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classwithmethods.java

📁 里面包含很多c语言的源码
💻 JAVA
字号:
import java.lang.String;

public class ClassWithMethods {

    public void displayText(String message, boolean newline) {
    // Displays message on the console, moving to
    // the start of a new line after message only
    // if newline is true.
    if (newline)
        System.out.println(message);
    else
        System.out.print(message);
    }

    public double halfOf(double value) {
    // Returns half of its argument.
    return value / 2;
    }

    public long sumOf(long value1, long value2) {
    // Returns the sum of its arguments.
    long result;
    result = value1 + value2;
    return result;
    }
}

⌨️ 快捷键说明

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