Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2317
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2012-12-03 03:54 -0800 |
| References | <b1bcd9f8-31a1-49af-b3c4-dc0513e9c569@googlegroups.com> |
| Message-ID | <32edcdd7-b231-4423-be5e-e85ea296210d@googlegroups.com> (permalink) |
| Subject | Re: Need help when using Google Script |
| From | John Dildy <jdildy85@gmail.com> |
Is my code correct for Java but just saved incorrectly?
Like I was just wondering if there was anyone that used Google Script so they could help me understand that it was incorrectly.
I understand the Difference between JavaScript and Java.
<!DOCTYPE html>
<html>
<head>
<script>
function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}
</script>
</head>
<body>
<h1>My First JavaScript</h1>
<p id="demo">This is a paragraph.</p>
<button type="button" onclick="displayDate()">Display Date</button>
</body>
</html>
That was JavaScript
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("Hello World"); //prints Hello World
System.out.printIn("Hello Again"); //prints Hello Again
}
}
That is Java.
I do get the understatement on the diference.
I am just going to use a proper IDE (eclipse) unless there is a better one to use for .Java program files.
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need help when using Google Script John Dildy <jdildy85@gmail.com> - 2012-12-02 14:27 -0800
Re: Need help when using Google Script John Dildy <jdildy85@gmail.com> - 2012-12-02 14:27 -0800
Re: Need help when using Google Script Joerg Meier <joergmmeier@arcor.de> - 2012-12-03 00:16 +0100
Re: Need help when using Google Script John Dildy <jdildy85@gmail.com> - 2012-12-02 15:44 -0800
Re: Need help when using Google Script markspace <-@.> - 2012-12-02 18:00 -0800
Re: Need help when using Google Script John Dildy <jdildy85@gmail.com> - 2012-12-03 02:30 -0800
Re: Need help when using Google Script Joerg Meier <joergmmeier@arcor.de> - 2012-12-03 12:24 +0100
Re: Need help when using Google Script John Dildy <jdildy85@gmail.com> - 2012-12-03 03:54 -0800
Re: Need help when using Google Script markspace <-@.> - 2012-12-03 08:27 -0800
Re: Need help when using Google Script Roedy Green <see_website@mindprod.com.invalid> - 2012-12-03 10:55 -0800
Re: Need help when using Google Script Roedy Green <see_website@mindprod.com.invalid> - 2012-12-03 10:57 -0800
csiph-web