Page 1 of 1

Java programing assignments

Posted: Fri Aug 05, 2011 9:48 pm
by Nipuna
Hello friends.

I found a great web site which has Java programing assignments. So cool site. :clap:

Here it is I am posting this because I was searching this kind of site for a long time and this will help the others who learn Java too. I think Java experts in ROBOT.LK might already know this and might know better sites than this too. ;)

http://www.javaranch.com/java-college.jsp

I already did the first assignment too ;)

But bit different from the answer they gave ;) But works as required. :yahoo:



Code: Select all


//Assignment Java-1a (Hundred)
//http://www.javaranch.com/hundred.jsp


class JavaranchAss1{

public static void main(String args[]){

	String a;

	a=args[0];

	for(int x=0;x<=100;x++)

	System.out.print(a+" ");


}
}


By the way, I really like this new Smilie Yahoo :yahoo: :yahoo: :yahoo: :yahoo: :yahoo: :yahoo: :yahoo:

Re: Java programing assignments

Posted: Fri Aug 05, 2011 11:28 pm
by Neo
I'm wondering why he has used .jsp (Java Server Pages - A server side scripting language based on Java such as PHP) extension instead of .java. I'm wondering whether it is legal to put main() in a jap page.

Any idea guys ?

Re: Java programing assignments

Posted: Sat Aug 06, 2011 12:03 am
by Herath
From the basics that I have learned , basic jsp pages have methods to handle requests like GET and POST, and other stuffs. The code is not for a jsp,isn't it?.

Re: Java programing assignments

Posted: Sat Aug 06, 2011 12:07 am
by Rksk
Neo wrote:I'm wondering why he has used .jsp (Java Server Pages - A server side scripting language based on Java such as PHP) extension instead of .java. I'm wondering whether it is legal to put main() in a jap page.

Any idea guys ?
Neo,
are you talking about http://www.javaranch.com/hundred.jsp ?
it's a url, not the java programe.

[ Post made via Mobile Device ] Image

Re: Java programing assignments

Posted: Sat Aug 06, 2011 12:29 am
by Neo
Ohh Rksk... thanks... I was just misguided by seeing the jsp extension. As Herath stated I was involved with a JPS project at uni and used GET/POST stuff just as in php. Nothing else. Now everything is clear. Thanks..

One out of the topic question. What are doing at this time? I guess A/L is very close, isn't it? Please do your studies well.

Re: Java programing assignments

Posted: Sat Aug 06, 2011 10:34 am
by Rksk
Neo wrote: One out of the topic question. What are doing at this time? I guess A/L is very close, isn't it? Please do your studies well.
Yes, it's on the day after tommorow (first MATHS-Pure).

There is no any presure. I'm ready for it.

Thankz.

[ Post made via Mobile Device ] Image

Re: Java programing assignments

Posted: Sat Aug 06, 2011 3:45 pm
by Neo
I'm so happy to hear that. All my wishes are with you. All the best!!!!

Re: Java programing assignments

Posted: Sat Aug 06, 2011 5:32 pm
by Nipuna
All the best Man !!! :clap: :clap: :clap: :biggrin: :biggrin: :biggrin: :biggrin:

Re: Java programing assignments

Posted: Sat Aug 06, 2011 5:58 pm
by Face
All the best brother!! (No problem about off topic :D )

Re: Java programing assignments

Posted: Sat Aug 06, 2011 9:10 pm
by Rksk
Thank you all.
I'll do my best.

[ Post made via Mobile Device ] Image