Skip to content

Recent Articles

26
Aug
godaddy-logo1

Domain Names and Web Hosting

Before you Start Blogging on WordPress, You will have to have a domain name and a hosting space.

For Domain Names :

GoDaddy.com – $10 per domain. Best Service on the Internet.

CO.cc – Free Service (I have not Tried)

For Web Hosting :

GoDaddy.com – Price depends on space – begins from $5 per month for 10GB space.

2GBHosting.com – Price depends on space – begins from $10 per year for 2GB space.

000WebHost.com – Free Service (I have not Tried)

Set Up a Domain Name and Space. If you dont want any hassles take the domain name and web space on GoDaddy.com and it will setup everything for you. Its easy to keep everything in one place.

Vote this page

26
Aug

WordPress

Hey Everyone, Here I’ll be putting up WordPress Related Posts and Stuff.

Soon It’ll become a complete guide where you’ll be able to make your own wordpress blog in less than an hour and start blogging…

Stay Tuned and Keep Following.

Vote this page

20
Aug
Projectile

Projectile (My Original App)

This is the Projectile Program. It calculates the farthest distance which can be achieved by any object at a particular velocity thrown.

Note : Change the value of Velocity “double V = 100;”
And if required change the gravitational potential “double g = 9.8;”.

Code :

public class Projectile {

public static void main(String[] args) {

double V = 100;

double g = 9.8;

double d = 0;

double d2 = 1;

double y = Math.PI /180;

System.out.println(“Velocity – m/s : ” + V);

System.out.println(“Gravitaional Potential : ” + g);

System.out.println(“Initial Degree : ” + d);

System.out.println(” “);

while (d <= 90) { double R = (2 * V * V * Math.sin(d * y) * Math.cos(d * y))/g; double R2 = (2 * V * V * Math.sin(d2 * y) * Math.cos(d2 * y))/g; if (R2 > R) {

R = R2;

d = d + 1;

d2 = d2 + 1;

}

else {

System.out.println(“Max Distance : ” + R + ” Meters”);

System.out.println(“At : ” + d + ” Degrees”);

break;

}

}

}

}

Vote this page

17
Aug

Time Table (9th A)

Time Table 9A
Period Monday Tuesday Wednesday Thursday Friday
1 English Reading French Maths French Biology
2 Economics Economics English Maths Chemistry
3 French Maths Biology English Maths
4 Maths Chemistry PT Physics Economics
5 Physics English Economics Business Studies Physics
6 Business Studies Biology Chemistry Business Studies English

Vote this page

16
Aug

Economics – How Prices are Determined

Economics – How Prices are Determined – Chapter7 Notes

Download Here :

IGCSE Economics – How Prices are Determined

Vote this page

15
Aug

Summer of 69 Cover

Hey Everyone….. See my Summer of 69 Guitar Cover…

This is my first Cover on Youtube….

Hope you enjoy it…..

Vote this page

3
Aug
clock

Time Calculator (An Original)

This program calculates the time taken to write numbers from 1 to 500,000. On my Computer it took the program 21 seconds… You can tell about your times in the comments below….

Code :

class TimeCalc {

public static void main (String [] args) {

System.out.println (“This will Measure time taken for a small loop in seconds……”);

int x = 500000;

long startTime = System.nanoTime();

while (x > 0) {

System.out.println (x);

x = x – 1;

}

long endTime = System.nanoTime();

long elapsedTime = endTime – startTime;

long timeSecs = elapsedTime / 1000 / 1000 / 1000 ;

System.out.println (timeSecs + ” seconds were taken to generate these numbers”);

}

}

Vote this page

3
Aug
budweiser-bottle-lights

99 Bottles of Beer

99 Bottles of Beer is a very famous song but its quite long to write…

Java is the shortcut to write that song….

Simply write code and compile.

Code :

class BeerSong {

public static void main (String [] args) {

int beerNum = 99;

String word = “bottles”;

while (beerNum > 0) {

if (beerNum == 1) {

word = “bottle”;

}

System.out.println (beerNum + ” ” + word + ” of beer on the wall”);

System.out.println (beerNum + ” ” + word + ” of beer.”);

System.out.println (“Take it down”);

System.out.println (“Pass it around”);

beerNum = beerNum – 1;

if (beerNum == 1) {

System.out.println (beerNum + ” ” + word + ” of beer on the wall”);

} else if (beerNum == 0)}

}

System.out.println (“No more bottles of beer on the wall”);

}

}

Hope you enjoyed it…..

Vote this page

3
Aug
hello-world

Hello World Explained

Hello World Explained

So now I’m gonna explain how the Hello World Code works.

Code :

class HelloWorld {

public static void main (String [] args) {

System.out.println (“Hello World”);

System.out.println (“My World Rocks”);

}

}

Explained :

The Line class HelloWorld { tell the compiler to make a class file named HelloWorld and opens the program. Means from now the program starts executing.

Then the line public static void main (String [] args) { is the line which the compiler converts into byte code and when it reaches the JVM it just looks for this line to execute the program. If this line is not found then the compiler wont execute the program. And the curly brace at the end opens the program to which really has to be executed.

The Lines System.out.println (“Hello World”); andSystem.out.println (“My World Rocks”); tell the JVM to show the stuff which is in the inverted commas.

The two curly braces } and } are the closing points of the program

Remember every curly brace which is opened has to be closed.

Vote this page

3
Aug
hello-world

Running Hello World

Running HelloWorld

Now that you have compiled your program, you have to run it.

To run your HelloWorld just do this:

To run the program type :

java HelloWorld

Note: You should be in the directory where the file HelloWorld.java is.

Note: the word before HelloWorld is java and not javac, and don’t type the extension .class after HelloWorld.

Then you should get the output :

Hello World

My World Rocks

Thats it……Now study HelloWorld in detail…

Vote this page

ArjunBajaj.com is Digg proof thanks to caching by WP Super Cache