Win a copy of Fixing your Scrum this week in the Agile forum!

sean slater

Greenhorn
+ Follow
since Aug 13, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sean slater

i dont get what you guys mean.

I think my preprocessor segment is wrong.

i better learn 'Head First Java ' and get some clarity.

Thanks for your time and suggestions though.
10 years ago

bhanu chowdary wrote:

sean slater wrote:the eclipse says there isnt a main....


This is not a compilation problem, you can see a class file generated if you navigate to your project folder. You will see this kind of error when you try to run a piece of code which do not have a main method...



how can i know that acm.program or acm.graphics does or doesnt have main in it?
10 years ago
hi thanks for the fast reply
i have changed the code,but is this what you mean?


import acm.graphics.*;
import acm.program.*;
public class helloworld extends Graphics.Program{
public static void main (){
add {new Glabel {"helloworld",100,75}};
}}

but i tried this but still its asking for main.
I was listening to stanford lectures CS 106A and video no 4.
http://www.youtube.com/watch?v=nWheM30THaY&feature=relmfu
I dont have any other books right now, honestly i kinda feel i 'm missing something pretty obvious.
Do you mind recommending a source of learning, either book or a website where i can learn considering i m a beginner to programming.
thanks in advance.
10 years ago
import acm.graphics.*;
import acm.program.*;
public class helloworld extends Graphics.Program{
public void run(){
add {new Glabel {"hello,world ",100,75}};
}}

I am a newbie and I am self learning.Please help.

the eclipse says there isnt a main....
10 years ago