Java programing assignments

Java programming topics
Post Reply
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Java programing assignments

Post by Nipuna » Fri Aug 05, 2011 9:48 pm

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:
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Java programing assignments

Post by Neo » Fri Aug 05, 2011 11:28 pm

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 ?
User avatar
Herath
Major
Major
Posts: 417
Joined: Thu Aug 05, 2010 7:09 pm

Re: Java programing assignments

Post by Herath » Sat Aug 06, 2011 12:03 am

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?.
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: Java programing assignments

Post by Rksk » Sat Aug 06, 2011 12:07 am

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
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Java programing assignments

Post by Neo » Sat Aug 06, 2011 12:29 am

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.
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: Java programing assignments

Post by Rksk » Sat Aug 06, 2011 10:34 am

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
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Java programing assignments

Post by Neo » Sat Aug 06, 2011 3:45 pm

I'm so happy to hear that. All my wishes are with you. All the best!!!!
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: Java programing assignments

Post by Nipuna » Sat Aug 06, 2011 5:32 pm

All the best Man !!! :clap: :clap: :clap: :biggrin: :biggrin: :biggrin: :biggrin:
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: Java programing assignments

Post by Face » Sat Aug 06, 2011 5:58 pm

All the best brother!! (No problem about off topic :D )
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: Java programing assignments

Post by Rksk » Sat Aug 06, 2011 9:10 pm

Thank you all.
I'll do my best.

[ Post made via Mobile Device ] Image
Post Reply

Return to “Java Programming”