I'm dealing with some situations with Java Eclipse, I was writing the codes for a public class related to 'books". basically using instance data for the author, publisher, copy right date, etc. I feel like I've got all the correct codes and everything but I feel as if I've stumbled onto a certain error that I can't fix. Every-time I try to run the program the console output says: book[Java Application] C:\Program Files (x86)\Java\jre7\bin\javaw.exe.
I don't know what I did wrong, if anybody can help me that would be great. Here are the codes i wrote:
new book ("Kingdom Keepers III\n", "Disney In Shadow\n", "Ridley Pearson\n", year2);
new book("Kingdom Keepers IV\n", "Power Play\n", "Ridley Pearson\n", year3);
System.out.println("Kingdom Keepers III");
System.out.println("Kingdom Keepers IV");
at first ,static-method can't transfer construct-method；the virtual can't recognize them for transfering each other,and static's prior higher than construct
at second , if u want to test main ,and write printout static and construct ; u main-method should new book,through print result，u can find their prior
Thanks for your response.
User can enter the data once in a day. once user enter the data ex: Sep 21st, he can not enter data for that particular user id in Sep21st. in future also he cannot add the data for Sep21st. that is my requirement. Could you please provide the solution
What am I trying todo: I request the document from a website with jsoup and then I try to get different kind of information from it. So far it worked with like getting the text of a tag but now I have a few H2 tags which contains headlines of different Information structures. I need to check if this H2 tag a specific text and then get the text of the parent html node.
org.jsoup.select.Selector$SelectorParseException: Could not parse query 'h2[text()='Synopsis']': unexpected token at 'text()='Synopsis''
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
For the last 4 hours and tried like 30 different xpath statements like the one above I'm at a loss here and can't think of anything more I could try. Every selution that goes remotely in this kind of direction I tried returned null, something entirely different as I expected or with the exception you see above.
here is an example that actually works but as I said before its quite easy
1)need to read the data from an input file where input file contains parameters like no:of nodes,no:of subgraphs,random number etc.(idea how to specify all these in input file)
2)create a data structure tree or array to store above
3)create graph in main memory and traverse this graph a node at a time and outputs the data into output files
4)output file must contain node id and ids to which it is connected to
please help.i am starter in coding.please do help and guide me.thanks in advance.
my mail firstname.lastname@example.org
0) Please do not use bold characters, it appears as if you are shouting, and that is considered rude.
1-4) First learn Java and its libraries: http://download.oracle.com/javase/tutorial/index.html[^].
5) People here are happy to help you when you get stuck with the code you have written, but no one is going to write it for you.
yes, I agreed bu problem is that to shared variable of my current running application to other java application and if other application access my class that is OK but how to share value of my current running object.
I am a beginner for Java programming. I started to self study by referring java documentation. But it is too complicated. But I followed language basics. After that I am in a trouble to select that , which java technologies to study. My dream is to be a java developer. Anyone can guide me?
After that I am in a trouble to select that , which java technologies to study
Presumably you have in fact managed to create some simple programs and now you have reached the point where you want to study some part of java without attempting to learn everything at once.
If you like pretty pictures you can learn swing although you probably shouldn't spend too much time on that since most new development won't use that. Despite that learning the basics of graphics can still be helpful. And it is possible that you will encounter this at some point.
Alternatively to that is you could learn how sockets work. Build a chat program (swing could help with that but not necessary.)