Heading 2
Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Heading 3
Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Heading 4
Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Heading 5
Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Heading 6
Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Paragraph
Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraph
https://account.algo.dev.kube.mskix.d-net.pro/project/all/deposit/523
class Point
{ int x, y;
void init(int x, int y)
{ this.x = x;
this.y = y;
}
}
class TwoPointsInit
{ public static void main(String args[])
{ Point p1 = new Point();
Point p2 = new Point();
p1.init(10,20);
p2.init(42,99);
System.out.println("x = " + p1.x + " y = " + p1.y)
System.out.println("x = " + p2.x + " y = " + p2.y);
}
}
<body>
<!-- Add your site or application content here -->
<p>Hello world! This is HTML5 Boilerplate.</p>
<script src="js/vendor/modernizr-3.11.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('set', 'anonymizeIp', true); ga('set', 'transport', 'beacon'); ga('send', 'pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async></script>
</body>
class Point
{ int x, y;
void init(int x, int y)
{ this.x = x;
this.y = y;
}
}
class TwoPointsInit
{ public static void main(String args[])
{ Point p1 = new Point();
Point p2 = new Point();
p1.init(10,20);
p2.init(42,99);
System.out.println("x = " + p1.x + " y = " + p1.y)
System.out.println("x = " + p2.x + " y = " + p2.y);
}
}
import java.applet.*;
import java.awt.*;
public class Rectangles extends Applet
{ DrawRectangles m_DrawRectThread = null;
DrawEllipse m_DrawEllipseThread = null;
NotifyTask m_NotifyTaskThread = null;
public String getAppletInfo()
{ return "Name: Rectangles";
}
public void paint(Graphics g)
{ Dimension dimAppWndDimension = getSize();
g.setColor(Color.yellow);
g.fillRect(0, 0, dimAppWndDimension.width - 1,dimAppWndDimension.height - 1);
g.setColor(Color.black);
g.drawRect(0, 0,dimAppWndDimension.width - 1,dimAppWndDimension.height - 1);
}
public void start()
{ if (m_DrawRectThread == null)
{ m_DrawRectThread = new DrawRectangles(this);
m_DrawRectThread.start();
}
if(m_DrawEllipseThread == null)
{ m_DrawEllipseThread = new DrawEllipse(this);
m_DrawEllipseThread.start();
}
if (m_NotifyTaskThread == null)
{ m_NotifyTaskThread =new NotifyTask(m_DrawEllipseThread);
m_NotifyTaskThread.start();
}
}
public void stop()
{ if (m_DrawRectThread != null)
{ m_DrawRectThread.stop();
m_DrawRectThread = null;
}
if (m_DrawEllipseThread == null)
{ m_DrawEllipseThread.stop();
m_DrawEllipseThread = null;
}
if (m_NotifyTaskThread != null)
{
m_NotifyTaskThread.stop();
m_NotifyTaskThread = null;
}
}
}
class DrawRectangles extends Thread
{ Graphics g;
Dimension dimAppWndDimension;
public DrawRectangles(Applet Appl)
{ g = Appl.getGraphics();
dimAppWndDimension = Appl.getSize();
}
public void run()
{ while (true)
{ int x, y, width, height;
int rColor, gColor, bColor;
x = (int)(dimAppWndDimension.width* Math.random());
y = (int)(dimAppWndDimension.height* Math.random());
width = (int)(dimAppWndDimension.width * Math.random()) / 2;
height = (int)(dimAppWndDimension.height* Math.random()) / 2;
rColor = (int)(255 * Math.random());
gColor = (int)(255 * Math.random());
bColor = (int)(255 * Math.random());
g.setColor(new Color(rColor,gColor, bColor));
g.fillRect(x, y, width, height);
try
{ Thread.sleep(50);
}
catch (InterruptedException e)
{ stop();
}
}
}
}
class DrawEllipse extends Thread
{ Graphics g;
Dimension dimAppWndDimension;
public DrawEllipse(Applet Appl)
{ g = Appl.getGraphics();
dimAppWndDimension = Appl.getSize();
}
public synchronized void run()
{ while (true)
{ int x, y, width, height;
int rColor, gColor, bColor;
x = (int)(dimAppWndDimension.width* Math.random());
y = (int)(dimAppWndDimension.height * Math.random());
width = (int)(dimAppWndDimension.width * Math.random()) / 2;
height = (int)(dimAppWndDimension.height * Math.random()) / 2;
rColor = (int)(255 * Math.random());
gColor = (int)(255 * Math.random());
bColor = (int)(255 * Math.random());
g.setColor(new Color(rColor,gColor, bColor));
g.fillOval(x, y, width, height);
try
{ this.wait();
}
catch (InterruptedException e)
{
}
}
}
}
class NotifyTask extends Thread
{ Thread STask;
public NotifyTask(Thread SynchroTask)
{ STask = SynchroTask;
}
public void run()
{ while (true)
{ try
{ Thread.sleep(30);
}
catch (InterruptedException e)
{
}
synchronized(STask)
{ STask.notify();
}
}
}
}
import java.applet.*;
import java.awt.*;
public class Rectangles extends Applet
{ DrawRectangles m_DrawRectThread = null;
DrawEllipse m_DrawEllipseThread = null;
NotifyTask m_NotifyTaskThread = null;
public String getAppletInfo()
{ return "Name: Rectangles";
}
public void paint(Graphics g)
{ Dimension dimAppWndDimension = getSize();
g.setColor(Color.yellow);
g.fillRect(0, 0, dimAppWndDimension.width - 1,dimAppWndDimension.height - 1);
g.setColor(Color.black);
g.drawRect(0, 0,dimAppWndDimension.width - 1,dimAppWndDimension.height - 1);
}
public void start()
{ if (m_DrawRectThread == null)
{ m_DrawRectThread = new DrawRectangles(this);
m_DrawRectThread.start();
}
if(m_DrawEllipseThread == null)
{ m_DrawEllipseThread = new DrawEllipse(this);
m_DrawEllipseThread.start();
}
if (m_NotifyTaskThread == null)
{ m_NotifyTaskThread =new NotifyTask(m_DrawEllipseThread);
m_NotifyTaskThread.start();
}
}
public void stop()
{ if (m_DrawRectThread != null)
{ m_DrawRectThread.stop();
m_DrawRectThread = null;
}
if (m_DrawEllipseThread == null)
{ m_DrawEllipseThread.stop();
m_DrawEllipseThread = null;
}
if (m_NotifyTaskThread != null)
{
m_NotifyTaskThread.stop();
m_NotifyTaskThread = null;
}
}
}
class DrawRectangles extends Thread
{ Graphics g;
Dimension dimAppWndDimension;
public DrawRectangles(Applet Appl)
{ g = Appl.getGraphics();
dimAppWndDimension = Appl.getSize();
}
public void run()
{ while (true)
{ int x, y, width, height;
int rColor, gColor, bColor;
x = (int)(dimAppWndDimension.width* Math.random());
y = (int)(dimAppWndDimension.height* Math.random());
width = (int)(dimAppWndDimension.width * Math.random()) / 2;
height = (int)(dimAppWndDimension.height* Math.random()) / 2;
rColor = (int)(255 * Math.random());
gColor = (int)(255 * Math.random());
bColor = (int)(255 * Math.random());
g.setColor(new Color(rColor,gColor, bColor));
g.fillRect(x, y, width, height);
try
{ Thread.sleep(50);
}
catch (InterruptedException e)
{ stop();
}
}
}
}
class DrawEllipse extends Thread
{ Graphics g;
Dimension dimAppWndDimension;
public DrawEllipse(Applet Appl)
{ g = Appl.getGraphics();
dimAppWndDimension = Appl.getSize();
}
public synchronized void run()
{ while (true)
{ int x, y, width, height;
int rColor, gColor, bColor;
x = (int)(dimAppWndDimension.width* Math.random());
y = (int)(dimAppWndDimension.height * Math.random());
width = (int)(dimAppWndDimension.width * Math.random()) / 2;
height = (int)(dimAppWndDimension.height * Math.random()) / 2;
rColor = (int)(255 * Math.random());
gColor = (int)(255 * Math.random());
bColor = (int)(255 * Math.random());
g.setColor(new Color(rColor,gColor, bColor));
g.fillOval(x, y, width, height);
try
{ this.wait();
}
catch (InterruptedException e)
{
}
}
}
}
class NotifyTask extends Thread
{ Thread STask;
public NotifyTask(Thread SynchroTask)
{ STask = SynchroTask;
}
public void run()
{ while (true)
{ try
{ Thread.sleep(30);
}
catch (InterruptedException e)
{
}
synchronized(STask)
{ STask.notify();
}
}
}
}