Be a Supporter!

Java help

  • 318 Views
  • 6 Replies
New Topic Respond to this Topic
RaptorIV
RaptorIV
  • Member since: Apr. 21, 2007
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Java help 2008-06-02 20:09:17 Reply

I just started to learn java and wanted to know how to make the text lower case

here is my code

<script type="text/javascript">
<!--
function Run() {//put it in a function so i could use it in a button later on(as a test)
	confirm("I'm going to ask you a question");
	var Input = prompt("Hey? (Y/N)", "");
	document.write(Input.toLowerCase);
	if (Input.toLowerCase == "y") {
		alert("yup");
	}else{
		alert("nah dood");
	}
}
Run();
//-->
</script>

Returns: function toLowerCase() { [native code] }


ok?

authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to Java help 2008-06-02 22:29:39 Reply

it should be

Input.toLowerCase()

also, its javascript, not java. there is a substantial difference.


BBS Signature
RaptorIV
RaptorIV
  • Member since: Apr. 21, 2007
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Java help 2008-06-03 15:47:01 Reply

whats the difference?


ok?

Jon-86
Jon-86
  • Member since: Jan. 30, 2007
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Java help 2008-06-03 16:26:57 Reply

The first answer I got when I googled "what's the difference between java and javascript?"

Was this -> http://www.htmlgoodies.com/beyond/javasc ript/article.php/3470971

It explains it well. Learn to google questions before asking them. Its a rule of thumb!


PHP Main :: C++ Main :: Java Main :: Vorsprung durch Technik
irc.freenode.net #ngprogramming

BBS Signature
DougyTheFreshmaker
DougyTheFreshmaker
  • Member since: Jul. 30, 2007
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
Response to Java help 2008-06-03 17:28:10 Reply

Jon's right about the googling... but that article he linked is terrible. I don't think a single sentence is free of error or flawed implication.

An oversimplification would be that Javascript is generally used for website development and Java is generally used for application development. The languages are about as different as languages get.


We should take care not to make the intellect our god; it has, of course, powerful muscles, but no personality.
Freshmaking
Brainscrape

BBS Signature
GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Java help 2008-06-04 04:18:56 Reply

At 6/3/08 05:28 PM, DougyTheFreshmaker wrote: Jon's right about the googling... but that article he linked is terrible. I don't think a single sentence is free of error or flawed implication.

I think it's quite adequate for 'HTML programmers'.


BBS Signature
RaptorIV
RaptorIV
  • Member since: Apr. 21, 2007
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Java help 2008-06-04 15:53:21 Reply

thanks


ok?