![]() |
indentifier expected
i am a noob at java so my problem could quite possibly be really easy to fix
what im trying to do is get it so for a day in January it will display the day of week sunday being 0 and i keep gettin an identifier expected error :
import java.util.Scanner; |
dayOfWeek1 is a function, not a variable. Break out your parentheses and toss in a couple, along with an argument.
|
Also this line:
:
system.out.println(dayName); |
lol like i said i am a complete noob
can u plz describe wut u mean more by that both of u id prob understand wut ur saying but i just dont no wut u mean by function and such |
Break out the book. Maybe you could even find one written in AOL-speak, so you could understand it.
|
i love you to
|
Before you learn how to program in a language, there is really a minimum of information you should know before asking questions. In Java, this is a class:
:
:
:
:
However, I'm not sure why I'm writing this, because there are far better places to learn the basics. Honestly, it's like asking why your car isn't working, and then asking simple questions like, "Tyre? What's a 'tyre'?". We can't help you if you don't know the absolute basics. Also, it helps if you speak using as good English as you can manage. This shows you're taking the effort to be understood, which encourages other people to take some effort to help you. If you can't be bothered to string together a valid sentence, why should people be bothered helping you? Also, programming languages typically require the programmer to strictly adhere to the syntax of the language. It might help for you to start practising on English, first. And if you're wondering why I'm saying this after I gave you some basic information; it's because I'm a helpful imbecile. However, even my patience has it's limits. |
ok there you go i know what a method is i had not ever heard the term function before
|
OK, there you go. I know what a method is. I had never heard the term, function, before.
|
I was wondering what a term sounds like when it functions. Does it make a sound when it functions in a forest where there is no one to hear it?
|
| All times are GMT -5. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC