Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydattolo committed Jan 17, 2020
1 parent 1becbda commit 06a6e58
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "CodeLens (Launch) - E1_17",
"request": "launch",
"mainClass": "Labs.Lab0.E1_17",
"projectName": "H212_e5d32889"
},
{
"type": "java",
"name": "CodeLens (Launch) - E1_16",
"request": "launch",
"mainClass": "Labs.Lab0.E1_16",
"projectName": "H212_e5d32889"
},
{
"type": "java",
"name": "CodeLens (Launch) - E1_8",
Expand Down
3 changes: 2 additions & 1 deletion Labs/Lab0/E1_16.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ public static void main(String[] args) {
String name = JOptionPane.showInputDialog("What is your name?");
System.out.println(name);
}
}
}
//JFrame window pops up asking my name, I type in tony, tony prints out in the terminal
11 changes: 11 additions & 0 deletions Labs/Lab0/E1_17.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package Labs.Lab0;
import javax.swing.JOptionPane;

public class E1_17 {

public static void main(String[] args) {
String name = JOptionPane.showInputDialog("What is your name?");
String something = JOptionPane.showInputDialog("My Name is Hal! What would you like me to do?");
System.out.println("I'm sorry, "+name+". I'm afraid I can't do that.");
}
}
5 changes: 3 additions & 2 deletions Labs/Lab0/R1_9.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
public class R1_9 {

public static void main(String[] args) {
System.out.println("Hello", "World!");
// System.out.println("Hello", "World!");
}
}
//Exception in thread "main" java.lang.Error: Unresolved compilation problem:
// The method println(String) in the type PrintStream is not applicable for the arguments (String, String)
// at Labs.Lab0.R1_9.main(R1_9.java:9)

// at Labs.Lab0.R1_9.main(R1_9.java:9)
//note: commented out incorrect code because it was messing up my builds for other classes

0 comments on commit 06a6e58

Please sign in to comment.