Search:
Type: Posts; User: AlbertGM
Search:
Search took 0.06 seconds.
-
January 23rd, 2015, 09:08 AM
Hi,
Are you aware this is a Java forum, and your code doesn't look like.
By the way, could you format your post in a way that we can see what your problem is and what you already tried? It's...
-
December 30th, 2014, 09:16 AM
Hi,
It depends on what you are trying to do.
It seems you want a class Second in one location (./net/sssw/test) and the other HelloDate in another (./).
In such case it won't work, unless...
-
April 17th, 2013, 11:40 AM
Hi,
You can't switch on char arrays, and if you are using a JRE version prior to Java7 not even on Strings.
So, you can't do:
switch (cArray) {[....]}
Look at this site
Try something like:
-
January 17th, 2013, 07:00 AM
I think you almost get it, just fix syntax in System.out.print, and do it after read all variables, because you can't use a variable before being declared.
For example, assuming you already read...
-
January 17th, 2013, 05:06 AM
Try this... I guess this could work...
HttpClient httpClient = new HttpClient();
HostConfiguration config = client.getHostConfiguration();
config.setProxy(proxyUrl, proxyPort);
...
-
August 10th, 2012, 07:18 AM
Something like this should work:
Pattern p = Pattern.compile("[?!]");
Matcher m = p.matcher(value);
if (m.find()) {
System.out.println("value = " + value + " matches");
}
else {
-
July 20th, 2012, 03:08 AM
Hi,
I have never used that library. I use to work with Java Mail to send e-mails.
You are right, watching javadoc, it looks like there is no method setSSLOnConnect. Although I know nothing...
-
July 19th, 2012, 08:26 AM
Hi,
Eclipse always (almost) gives an explanation about why a program doesn't compile in 'problems' tab. So, first read it.
If you still don't have a clue, post the error compiler says. With...
-
July 19th, 2012, 03:10 AM
This seems homework. Please, read this
We are here to help, not to do your homework. If we give you the answer, you'll never learn. Tell us what you tried, what you don't understand or where you...
-
July 19th, 2012, 02:45 AM
I think you made a perfect explanation.
Expression
Num [] x = new Num[7] only tells de JVM to allocate a block of contiguous memory. Num constructor is NOT called.
Albert.
-
July 12th, 2012, 02:48 AM
System.out.println("Case \"" + caseNum + "\""); Regards,
Albert.
-
Hi,
First of all: Please, use code tags properly. Learn how to use here. Click on "preview post" to ensure.
1) To read port from command line, just read args parameter:
public static void...
-
Hi,
System.out.println("Reversing the words in the sentence: " + original + ", looks like: " + newSentence );
newSentence is an array of Strings. It doesn't use toString() method of String...
-
June 29th, 2012, 02:55 PM
Hi,
You are right, this error happens when you try to run a compiled java class using an older JRE. You always can check major and minor version of a compiled java class using "javap -verbose"...
-
June 29th, 2012, 04:12 AM
Did it work before cleaning your workspace? Occasionally eclipse gets crazy, so try to restart it.
It's difficult to say without any other information.
You can also click on run manager (Button...
-
June 28th, 2012, 05:39 AM
Are you talking about an Apache HTTP Server, right?
To find out where is located you can check using "httpd -V", or "ps auxww | grep httpd", to know where the process is running.
Config file is...
-
June 28th, 2012, 04:32 AM
Can't you be a little more specific?
I don't want to be rude, but if you know nothing about a concept you should first read a manual or a book and then, ask what you don't understand, don't you...
-
June 28th, 2012, 03:26 AM
Hi,
You only have to check each value read. For example:
[...]
for (int i = 0; i < num.length; i++, size++) {
System.out.println("Enter a number: ");
num[i] = nums.nextInt();
if (num[i]...
-
June 25th, 2012, 09:33 AM
Understood.
I guess it's just a communication problem, which I'm not sure if I can answer.
Nevertheless, as far as I know, the reason why you can't connect could be:
The internet route from...
-
June 25th, 2012, 04:03 AM
Hi,
If your server runs on 192.168.1.100, why your client tries to connect to 112.134.190.41?
s=new Socket("112.134.190.41",9999);
Albert.
-
June 20th, 2012, 04:40 AM
Hi all,
Part of my code have to send an email written in Spanish or Catalan, depending of language selected. Both languages have accents and other non-ASCII (7bit) printable characters. That's why...
-
June 20th, 2012, 03:25 AM
I think, I don't get it. Your list has more than 500 commands, right? Each command sleeps 1 sec, right? I takes more than 500 secs. So, what's the problem?
Post the code.... I guess it's the best...
-
June 14th, 2012, 06:16 AM
There are no templates in Java 1.4, which are called 'Generics'. They are part of Java 1.5.
What do you mean by "What is objects?"? There are thousands of sites to find out how to use a Map. ...
-
Hi,
Did you really download developer (JDK) version? In user version (JRE) there is no 'javac' command.
javac use to be located in $JAVA_HOME/bin (%JAVA_HOME%/bin in Windows), so you should add...
-
Try tools.jar in $JAVA_HOME/lib using JDK_1_5_22. I'm not sure using Java 6.
Regards,
Albert.
|
Click Here to Expand Forum to Full Width
|