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.
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...
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...
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...
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"...
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...
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...
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...
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]...
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...
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...
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?
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...
Hi,
Although I'm not sure what you are attempting to do next line is wrong:
for (int i = 0, i < 5; i++ ;); /// line 17
It should be
for (int i = 0; i < 5; i++);
Anyway, above expression is...