public class AMModulation
{
public static void main(String[] args)
{
StdDraw.setXscale(-10,10);
StdDraw.setYscale(-10,10);
double[] y=new double[50000];
double[] x=new double[50000];
double[] z=new double[50000];
StdDraw.line(0,0,10,0);
StdDraw.line(0,0,0,10);
StdDraw.line(0,5,10,5);
for(int i=0;i<45000;i++)
{
x[i+1]=x[i]+Math.PI/500.0;
}
for (int j=0;j<45000;j++)
{
y[j]=5+2*Math.sin(x[j]);
}
for(int i=0;i<45000;i++)
{
z[i]=y[i]*Math.sin(10*x[i]);
}
for(int i=0;i<1500;i++)
{
StdDraw.point(x[i],y[i]);
StdDraw.point(x[i],z[i]);
}
}
}
Saturday, January 26, 2013
SIMPLE VIRUS
This is the simple .java virus .Very amazing on how this work .
public class TestOut
{
public static void main(String[] args)
{
int a=1;
while(a<=10)
System.out.println(a);
}
}
you try to run this on the command or simple java compile
javac TestOut.java
java TestOut >TestOut.txt
this type of virus is harmless so you may try to run it for fun and check your free space memory decrease per time
how to remove just stop the program and then .delect file TestOut.txt
public class TestOut
{
public static void main(String[] args)
{
int a=1;
while(a<=10)
System.out.println(a);
}
}
you try to run this on the command or simple java compile
javac TestOut.java
java TestOut >TestOut.txt
this type of virus is harmless so you may try to run it for fun and check your free space memory decrease per time
how to remove just stop the program and then .delect file TestOut.txt
Subscribe to:
Posts (Atom)