瀏覽代碼

adding starter code

cs349 7 年之前
父節點
當前提交
4592a84f1f
共有 3 個文件被更改,包括 0 次插入41 次删除
  1. 0 12
      examples/java/A0/A0.iml
  2. 0 14
      examples/java/A0/src/Hello.java
  3. 0 15
      examples/java/A0/src/Main.java

+ 0 - 12
examples/java/A0/A0.iml

@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
-    <exclude-output />
-    <content url="file://$MODULE_DIR$">
-      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
-    </content>
-    <orderEntry type="inheritedJdk" />
-    <orderEntry type="sourceFolder" forTests="false" />
-  </component>
-</module>
-

+ 0 - 14
examples/java/A0/src/Hello.java

@@ -1,14 +0,0 @@
-import javax.swing.*;
-import java.awt.Font;
-
-public class Hello extends JFrame {
-
-    public Hello(){
-        JLabel l = new JLabel("Hello Java");
-        l.setFont(new Font("Serif", Font.PLAIN, 24));
-        add(l);
-        setSize(200, 100);
-        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
-        setVisible(true);
-    }
-}

+ 0 - 15
examples/java/A0/src/Main.java

@@ -1,15 +0,0 @@
-import java.io.PrintWriter;
-
-public class Main {
-
-    public static void main(String[] args) {
-        Hello hello = new Hello();
-        try {
-            PrintWriter writer = new PrintWriter("results.txt", "UTF-8");
-            writer.println(System.getProperty("java.version"));
-            writer.close();
-        } catch (Exception ex) {
-            System.out.println(ex.toString());
-        }
-    }
-}