Restore
This commit is contained in:
10
Labs/Lab2/Lab2Part2_2230026071/Question2/.classpath
Normal file
10
Labs/Lab2/Lab2Part2_2230026071/Question2/.classpath
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
17
Labs/Lab2/Lab2Part2_2230026071/Question2/.project
Normal file
17
Labs/Lab2/Lab2Part2_2230026071/Question2/.project
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Question2</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding/<project>=UTF-8
|
||||
BIN
Labs/Lab2/Lab2Part2_2230026071/Question2/bin/TimeTable.class
Normal file
BIN
Labs/Lab2/Lab2Part2_2230026071/Question2/bin/TimeTable.class
Normal file
Binary file not shown.
21
Labs/Lab2/Lab2Part2_2230026071/Question2/src/TimeTable.java
Normal file
21
Labs/Lab2/Lab2Part2_2230026071/Question2/src/TimeTable.java
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
public class TimeTable {
|
||||
|
||||
public static void main(String[] args) {
|
||||
//first 2 row
|
||||
System.out.println("* | 1 2 3 4 5 6 7 8 9");
|
||||
System.out.println("------------------------------");
|
||||
//row under line
|
||||
for(int i = 1; i < 10; i++) { //row
|
||||
System.out.print(i + " |");
|
||||
for(int j = 1; j < 10; j++) { //column
|
||||
int x = i*j;
|
||||
if(x < 10) System.out.print(" "); //spaces
|
||||
else System.out.print(" ");
|
||||
System.out.print(x);
|
||||
}
|
||||
System.out.println(""); //next line
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user