English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I've got this Java (script?) code that ive got to get working in a webrowser (aplet?) here a sample¬

import gjava.runner.basicgame;
import java.awt.*;
import javax.swing.*;
import java.net.*;

public class ArtPart extends JApplet {

boolean loa



Any ideas? I've never used java before.

2006-12-23 19:51:47 · 7 answers · asked by Anonymous in Computers & Internet Programming & Design

7 answers

http://www.lissaexplains.com

That site right there will teach you everything you need to know about basic HTML including Java.

2006-12-23 19:58:37 · answer #1 · answered by Jeremy Medlock 5 · 0 0

This is plain Java source code. The import statements simply refer to other packages/classes that are referenced in the program.

"The "public class ArtPart rxtends JApplet{" defines the class (name and type (Applet).

The rest of the code is missing.

The line "boolean loa" should have a semi-colon at the end of the line. Having this semi-colon missing will surely give you compilation errors. Once the statement has been corrected it will define a variable (loa) which can have the value either true or fals and you are able to set this value any time while the applet is running.

At the end of the class, there should be a closing curly brace to match the opening one at the end of JApplet{ ---> }

Unless you have left out the rest of the code deliberatly this piece of code won't actually do anything.

2006-12-23 20:01:18 · answer #2 · answered by Mariam 2 · 0 0

Check out the Java site lots of information there, The code is Java not Java script.

2006-12-23 20:00:36 · answer #3 · answered by derf 4 · 0 1

Hello,

The code you pasted is not Java Script. It's called Java. It's a Java Applet. In order to use a Java applet in your web page you will need to compile the applet and refer to it in your html. You can get a lot of information about Applets from: http://java.sun.com

2006-12-26 05:59:11 · answer #4 · answered by Derrill 1 · 0 0

A program that reads in a first name, a middle name, and a last name,
and then print out the three initials as a single string.
For example, if the three input names are James, Paul, and Jones,
then the output should be JPJ.

2015-06-01 08:24:24 · answer #5 · answered by ? 1 · 0 0

If you goto Wikipedia and search for javascript, you'll find a tutorial on it.

2006-12-23 19:55:32 · answer #6 · answered by Chuck 2 · 0 1

what r u trying to do?

answering a q with a q sorry lol

2006-12-31 06:05:07 · answer #7 · answered by Raby 1 · 0 0

fedest.com, questions and answers