Skip to content

Commit 0d13c9f

Browse files
authored
[IMPORT] Java directory (8 files)
Imported the Java directory, containing 8 files, of which 4 are are HTML documents, and 4 are Java source code program files.
1 parent e3fdcbf commit 0d13c9f

8 files changed

+269
-0
lines changed

Java/!JAVA_1.8_HOME.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<HTML>
2+
<HEAD>
3+
<TITLE>Welcome to SNU - SNU 2D Viewer</TITLE>
4+
</HEAD>
5+
<BODY BGCOLOR=" FFFFFF">
6+
<HR>
7+
<H3>This site is under construction</H3>
8+
<H1>Welcome</H1>
9+
<H2>Go back
10+
<a href="!SNU2DStart.html"> Click here!</a>
11+
<HTML>
12+
<HEAD>
13+
<TITLE>Home - SNU 1D Viewer</TITLE>
14+
</HEAD>
15+
<BODY BGCOLOR=" FFFFFF">
16+
<HR>
17+
<H3>This site is under construction</H3>
18+
<H1>SNU software center >> Programming Language List >> Java >> 1.8</H2>
19+
<H1>Java 1.8</H1>
20+
<H1>Sample programs</H1>
21+
<H2>HelloWorld_InJava.java
22+
<a href=".././Java/1.8/Samples/HelloWorld_InJava.java">Click here to view</a>
23+
<H1>====================================</H1>
24+
<H1>Copyleft Sean Walla Walla 2015-2019</H1>
25+
</HR>
26+
</BODY>
27+
</HTML>

Java/!JAVA_HOME.html

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<HTML>
2+
<HEAD>
3+
<TITLE>Welcome to SNU - SNU 2D Viewer</TITLE>
4+
<BODY BGCOLOR="NAVY">
5+
<style>
6+
p {
7+
color: white;
8+
}
9+
h1 {
10+
color: white;
11+
}
12+
h2 {
13+
color: white;
14+
}
15+
h3 {
16+
color: white;
17+
}
18+
h4 {
19+
color: white;
20+
}
21+
a {
22+
color: lime;
23+
}
24+
</style>
25+
<HR>
26+
<H1>SNU Programming >> Java</H1>
27+
<H1>Java</H1>
28+
<H1>Select a version</H1>
29+
<a href="!JAVA_1.8_HOME.html">Java 1.8</a>
30+
<HR>
31+
<H1>This page is being modernized due to a lack of editing for 6+ months</H1>
32+
<HR>
33+
<!--
34+
Update content goes here
35+
!-->
36+
<details><summary><H2>View older versions of this page</H2></summary>
37+
<p><b>Warning</b></p>
38+
<p>The snapshot 1 page was created when snapshots were non-existent in SNU. Snapshot 1 was archived from a February 15th 2019 revision. Once you enter the snapshot, there is no snapshot section, so you will have to use your browsers back button, go to a different page, close the page, or press your [BACKSPACE] key</p>
39+
<p><a href="!JAVA_HOME_Snapshot1.html">Snapshot 1</a></p>
40+
<p><a href="!JAVA_HOME_Snapshot2.html">Snapshot 2</a></p>
41+
<p><a href="!JAVA_HOME_Snapshot3.html">Snapshot 3</a></p>
42+
<p><a href="!JAVA_HOME_Snapshot4.html">Snapshot 4</a></p>
43+
<p><a href="!JAVA_HOME_Snapshot5.html">Snapshot 5</a></p>
44+
<p><a href="!JAVA_HOME_Snapshot6.html">Snapshot 6</a></p>
45+
<p><a href="!JAVA_HOME_Snapshot7.html">Snapshot 7</a></p>
46+
<p><a href="!JAVA_HOME_Snapshot8.html">Snapshot 8</a></p>
47+
<p><a href="!JAVA_HOME_Snapshot9.html">Snapshot 9</a></p>
48+
<p><a href="!JAVA_HOME_Snapshot10.html">Snapshot 10</a></p>
49+
</details>
50+
<HR>
51+
</BODY>
52+
</HTML>

Java/!JAVA_HOME_Snapshot1.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<HTML>
2+
<HEAD>
3+
<TITLE>Welcome to SNU - SNU 2D Viewer</TITLE>
4+
</HEAD>
5+
<BODY BGCOLOR=" FFFFFF">
6+
<HR>
7+
<H3>This site is under construction</H3>
8+
<H1>Welcome</H1>
9+
<H2>Go back
10+
<a href="!SNU2DStart.html"> Click here!</a>
11+
<HTML>
12+
<HEAD>
13+
<TITLE>Home - SNU 1D Viewer</TITLE>
14+
</HEAD>
15+
<BODY BGCOLOR=" FFFFFF">
16+
<HR>
17+
<H3>This site is under construction</H3>
18+
<H1>SNU software center >> Programming Language List >> Java</H2>
19+
<H1>Java</H1>
20+
<H1>Select a version</H1>
21+
<a href="../../Programming Tools/Java/!JAVA_1.8_HOME.html">Java 1.8</a>
22+
<H1>====================================</H1>
23+
<H1>Copyleft Sean Walla Walla 2015-2019</H1>
24+
</HR>
25+
</BODY>
26+
</HTML>

Java/!JAVA_HOME_Snapshot2.html

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<HTML>
2+
<HEAD>
3+
<TITLE>Welcome to SNU - SNU 2D Viewer</TITLE>
4+
<BODY BGCOLOR="NAVY">
5+
<style>
6+
p {
7+
color: white;
8+
}
9+
h1 {
10+
color: white;
11+
}
12+
h2 {
13+
color: white;
14+
}
15+
h3 {
16+
color: white;
17+
}
18+
h4 {
19+
color: white;
20+
}
21+
a {
22+
color: lime;
23+
}
24+
</style>
25+
<HR>
26+
<H1>SNU Programming >> Java</H1>
27+
<H1>Java</H1>
28+
<H1>Select a version</H1>
29+
<a href="!JAVA_1.8_HOME.html">Java 1.8</a>
30+
<HR>
31+
<H1>This page is being modernized due to a lack of editing for 6+ months</H1>
32+
<HR>
33+
<!--
34+
Update content goes here
35+
!-->
36+
<details><summary><H2>View older versions of this page</H2></summary>
37+
<p><b>Warning</b></p>
38+
<p>The snapshot 1 page was created when snapshots were non-existent in SNU. Snapshot 1 was archived from a February 15th 2019 revision. Once you enter the snapshot, there is no snapshot section, so you will have to use your browsers back button, go to a different page, close the page, or press your [BACKSPACE] key</p>
39+
<p><a href="!JAVA_HOME_Snapshot1.html">Snapshot 1</a></p>
40+
<p><a href="!JAVA_HOME_Snapshot2.html">Snapshot 2</a></p>
41+
<p><a href="!JAVA_HOME_Snapshot3.html">Snapshot 3</a></p>
42+
<p><a href="!JAVA_HOME_Snapshot4.html">Snapshot 4</a></p>
43+
<p><a href="!JAVA_HOME_Snapshot5.html">Snapshot 5</a></p>
44+
<p><a href="!JAVA_HOME_Snapshot6.html">Snapshot 6</a></p>
45+
<p><a href="!JAVA_HOME_Snapshot7.html">Snapshot 7</a></p>
46+
<p><a href="!JAVA_HOME_Snapshot8.html">Snapshot 8</a></p>
47+
<p><a href="!JAVA_HOME_Snapshot9.html">Snapshot 9</a></p>
48+
<p><a href="!JAVA_HOME_Snapshot10.html">Snapshot 10</a></p>
49+
</details>
50+
<HR>
51+
</BODY>
52+
</HTML>
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class HelloWorld
2+
{
3+
public static void main(String args[])
4+
{
5+
System.out.println("Hello World!")
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class HelloWorld
2+
{
3+
public static void main(String args[])
4+
{
5+
System.out.println("Hello World!")
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Start of script
2+
/* Forced Java Garbage collector - the Garbage truck Java script
3+
Version 1 (October 9th 2019)
4+
First version: 1 (October 9th 2019)
5+
Latest version: 1 (October 9th 2019) */
6+
/*
7+
// Implementation of "inspectheap" command // from SO
8+
// // from SO
9+
// Input arguments :- // from SO
10+
// arg0: "-live" or "-all" // from SO
11+
// credit: https://stackoverflow.com/a/7958004
12+
*/
13+
import java.util.Scanner();
14+
// import java.util.[GARBAGE_COLLECTION_UTILITY_HERE_IF_NEEDED];
15+
public class dumpTruck() {
16+
public main garbageCollectorForce() {
17+
System.out.println("Forced Java garbage collector");
18+
System.out.println("The Java garbage truck");
19+
jintHeap64(); // Calls the garbage collection method
20+
System.out.println("Garbage collection finished");
21+
/* Finalization and exit of terminal script
22+
// scann = new Scanner(System.in); // this one
23+
//scann = new Scanner(input); // this one, or other
24+
// scann.close();
25+
*/
26+
} // End of main method
27+
public static void jintHeap64 {
28+
static jint heap_inspection(AttachOperation* op, outputStream* out) { // from SO
29+
bool live_objects_only = true; // default is true to retain the behavior before this change is made // from SO
30+
const char* arg0 = op->arg(0); // from SO
31+
if (arg0 != NULL && (strlen(arg0) > 0)) { // from SO
32+
if (strcmp(arg0, "-all") != 0 && strcmp(arg0, "-live") != 0) { // from SO
33+
out->print_cr("Invalid argument to inspectheap operation: %s", arg0); // from SO
34+
return JNI_ERR; // from SO
35+
} // from SO
36+
live_objects_only = strcmp(arg0, "-live") == 0; // from SO
37+
} // from SO
38+
VM_GC_HeapInspection heapop(out, live_objects_only /* request full gc */, true /* need_prologue */); // from SO
39+
VMThread::execute(&heapop); // from SO
40+
return JNI_OK; // from SO
41+
}}} // It all ends here
42+
/*jmap -dump:format=b,file=heap.1 [pid]
43+
jmap -dump:live,format=b,file=heap.2 [pid]
44+
jmap -dump:format=b,file=heap.3 [pid]
45+
*/
46+
/*
47+
// End of script
48+
// Script is not yet functional
49+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Start of script
2+
/* Forced Java Garbage collector - the Garbage truck Java script
3+
Version 1 (October 9th 2019)
4+
First version: 1 (October 9th 2019)
5+
Latest version: 1 (October 9th 2019) */
6+
/*
7+
// Implementation of "inspectheap" command // from SO
8+
// // from SO
9+
// Input arguments :- // from SO
10+
// arg0: "-live" or "-all" // from SO
11+
// credit: https://stackoverflow.com/a/7958004
12+
*/
13+
import java.util.Scanner();
14+
// import java.util.[GARBAGE_COLLECTION_UTILITY_HERE_IF_NEEDED];
15+
public class dumpTruck() {
16+
public main garbageCollectorForce() {
17+
System.out.println("Forced Java garbage collector");
18+
System.out.println("The Java garbage truck");
19+
jintHeap64(); // Calls the garbage collection method
20+
System.out.println("Garbage collection finished");
21+
/* Finalization and exit of terminal script
22+
// scann = new Scanner(System.in); // this one
23+
//scann = new Scanner(input); // this one, or other
24+
// scann.close();
25+
*/
26+
} // End of main method
27+
public static void jintHeap64 {
28+
static jint heap_inspection(AttachOperation* op, outputStream* out) { // from SO
29+
bool live_objects_only = true; // default is true to retain the behavior before this change is made // from SO
30+
const char* arg0 = op->arg(0); // from SO
31+
if (arg0 != NULL && (strlen(arg0) > 0)) { // from SO
32+
if (strcmp(arg0, "-all") != 0 && strcmp(arg0, "-live") != 0) { // from SO
33+
out->print_cr("Invalid argument to inspectheap operation: %s", arg0); // from SO
34+
return JNI_ERR; // from SO
35+
} // from SO
36+
live_objects_only = strcmp(arg0, "-live") == 0; // from SO
37+
} // from SO
38+
VM_GC_HeapInspection heapop(out, live_objects_only /* request full gc */, true /* need_prologue */); // from SO
39+
VMThread::execute(&heapop); // from SO
40+
return JNI_OK; // from SO
41+
}}} // It all ends here
42+
/*jmap -dump:format=b,file=heap.1 [pid]
43+
jmap -dump:live,format=b,file=heap.2 [pid]
44+
jmap -dump:format=b,file=heap.3 [pid]
45+
*/
46+
/*
47+
// End of script
48+
// Script is not yet functional
49+
*/

0 commit comments

Comments
 (0)