I'm new to java can someone please explain to me whats wrong with this method:
clas Hello {
public static void main (String[]arg) {
Document.write ("hello world") ;
}}
I mavenize my java-project and don't understand, how add in it native libraries. In my not-maven project i did it via CLASSPATH. I use NetBeans and maven in it.
JFace Databinding doesn't support generics, so it isn't particularly type-safe. And apparently it never will, since they wish to preserve Java 1.3 support.
JGoodies supports generics since 2.0.0. Has anyone ported JGoodies 2 to SWT/JFace? Or is there another library which allows both?
I am working on Java. Here is my code
response = URLEncoder.encode(response, "UTF-8").replaceAll("\\+", "%20");
Problem comes when there is a ' (single quote) in the string response. It gets encoded to \'.
eg - 'Collective Dynamics of Complex Networks' comes as
\'Collective Dynamics of Complex Networks\'
I want it to remain as it is. What should I do?
Hi..i wanted to develop a whiteboard application..i know the basics of java..but have no idea where to start from..so..i'd really appreciate if you could guide me..as in..where do i start from??..plz...i reallly need ths..
Hi..i wanted to develop a whiteboard application..i know the basics of java..but have no idea where to start from..so..i'd really appreciate if you could guide me..as in..where do i start from??
Im getting classnotfountexception on Class.forname("com.mysql.jdbc.Driver")
im using:
windows vista 64-bit,
Eclipse Galileo,
GWT framework
i downloaded (mysql-connector-java-5.1.6-bin), but what the exact path i should add to.
im getting this exception while im in gwt-projects, but normal projects working good,
any idea how that should be done???...thanks
I believe conversion exactly to BigInteger[] would be optimal in my case. Anyone had done or found this written in Java and willing to share?
So imagine I have arbitrary size byte[] = {0xff,0x3e,0x12,0x45,0x1d,0x11,0x2a,0x80,0x81,0x45,0x1d,0x11,0x2a,0x80,0x81}
How do I convert it to array of BigInteger's and then be able to recover it back the original byte array safely?
ty in advance.
I am working on parsing plain text and converting it to key-value pairs.
For example, plain text:
some_uninteresting_thing
key1 valueA, valueB, valueC
key2 valueD
key3 valueE valueF
key4 valueG(valueH, valueI)
key5 some_uninteresting_thing valueJ some_uninteresting_thing
key6 some_uninteresting_thing
(key6 shouldn't be mapped because has no appropriate values) As you can see plain text is lenient. What java library can handle this? If no such library exist, any suggestions on algorithm to do this.
I would like to design a PvP game uses flash in client and java socket server, but I do need server validates trajectory and if bullets hit target from cheating.
Is there any tutorial or paper provides how to do this ?
here's an example of a company selling complete software suite/platform
www.ql2.com/technology/platform.php
i wonder how are such suite/platforms developped ? do you have to use J2EE ?
i am more interested in how this company is able to produce their own proprietary WebQL language.
www.automationanywhere.com/products/AAServer.htm
is another similar company selling "servers"....how are such proprietary servers developped with Java technology ?
How can I parse a strings like :
name1="val1" name2="val2" name3="val3"
I cannot use split(\s+) as it can be name = "val 1".
I am doing java but any laguage is okay.
hi
Oracle [Sun] don't let downloading anything from their websites for people from iran.[sad story for us because we are students and Researcher...]
i need to samples of this tutorial : http://java.sun.com/javaee/6/docs/tutorial/doc/gexaj.html#gexba
anybody can help me for finding mirror link for these samples or uploading samples ?
I appreciate you.
thanks
I have created a Java application (project) in NetBeans, in which I have designed a JFrame with menu bar, and different JPanels. I want these JPanels to appear inside the JFrame on action of different menu items, so that whenever the menu items are clicked different JPanels should appear inside the JFrame. I have designed both JFrame & JPanel separately, but I couldn't link them together.
Please help me out friends.
I've used Java for some time and I keep hearing about interfaces such as Cloneable, Iterable and other X-ables.
I was wondering if there is a list somewhere of all of these and more importantly - which ones do you regularly use day-to-day?
For example, I've read that Cloneable is considered badly written and isn't widely used.
I am new to web development, I have to create a web application in Java using GWT that connects to a database and download a file from it. Regardless of the type of database, what does the web application need in order to create a connection with the database? E.g. an API
We are doing one project. We have to develope website, that displays all proxy servers list and when user click on particular server it will be activated to him.
For this I am confusing on use Java or PHP. which is simple to handle proxys.
Please help me.
I am very new to programming, so please bear with me, and apologies in advance if at first I dont make sense...!
I am doing an undergrad programming project, and need to make some databases within a Java program. I am using eclipse (galilo) to write my program. I have downloaded a connector/J, but havent the foggiest how i should use it!
Anyone out there able to give me a step by step approach?!
Many thanks!
Hi folks,
I have a little program allowing users to type-in some regular expressions. afterwards i like to check if this input is a valid regex or not.
I'm wondering if there is a build-in method in Java, but could not find such jet.
Can you give me some advice?
Best regards
Phil
Is there a way to print numbers from 1 to 100 without using any loops or conditions like "if"?
We can easily do using recursion but that again has an if condition. Is there a way to do without using "if" as well? Also no repetitive print statements,or a single print statement containing all the numbers from 1 to 100.
A solution in Java is preferable.
Is there any way to covert from toString back to the object in Java?
For example:
Map<String, String> myMap = new HashMap<String, String>();
myMap.put("value1", "test1");
myMap.put("value2", "test2");
String str = myMap.toString();
Is there any way to convert this String back to the Map?
http://maestric.com/wiki/lib/exe/fetch.php?w=&h=&cache=cache&media=java:spring:spring_mvc.png
In the above image, HTTP request sends something to Dispatcher Servlet. My Question is what does Dispatcher Servlet do.
Is it something like getting the information thrown from the web page and throwing it to the controller.