我有几个java文件。Main.java使用文件中的Picture类Picture.java。我想知道如何从命令行编译和运行 Main ?这是Main.java:package com.company;import javax.imageio.ImageIO;import java.awt.*;import java.awt.image.BufferedImage;import java.io.File;import java.io.IOException;public class Main { static Picture pic = null; // Picture class ??? public static void main(String[] args) { long t1, t2; String name = "bears.jpg"; pic = new Picture(name); t1 = System.nanoTime(); pic.new_img = meanFilter(pic.img); t2 = System.nanoTime(); pic.writeImage(); calculateTime(t1, t2); }和Picture.java:...public class Picture { public BufferedImage img; public BufferedImage new_img; ...
添加回答
举报
0/150
提交
取消