I figured it out>
Here is the solution for anyone interested.
Adobe Dreamweaver * Adding media objects
Or, go to Insert->Media-> and select the location of the applet .class file
--- Update...
Type: Posts; User: ojonugwa
I figured it out>
Here is the solution for anyone interested.
Adobe Dreamweaver * Adding media objects
Or, go to Insert->Media-> and select the location of the applet .class file
--- Update...
Yes,that is what am asking.I already can load it in an html page by writing the html code in notepad and running in my browser.I want to be able to do same using Dreamweaver.That is, insert the...
How do i get the applet running in dreamweaver? just like i would in notepad
Hi.Does anyone have any idea how to load applets in Dreamweaver?
the only options for codebase are ftp, http, https
Yeah, the if () {} statement is inside a try catch statement, i just forgot to include it in my question.
Question is a little bit elementary, but i just need a programmer to programmer explanation.
For example:
if (number < 1 || number > 100 )
throw new InvalidInputException();
...
Yeah, i know i need to use the new keyword.The confusion is in the constructor
MyDate today = new MyDate(...with regards to my example,what goes in here?...);
Strings don't work
Let's say i have this code:
import java.util.Date;
public class MyDate {
Date newDate;
public MyDate(Date date) {
Thanks.That explains a lot
ehm,
index1 = the index of the first element (row) in the array, say numbers[0][1], no?
index 2 = the index of the first element (column) in the array
numbers = the array
numbers[i]= the current...
Let say i have this code:
public class ArrayDemo {
public static void main (String[]args) {
int [][] numbers = {{5,3,2},{7,5,3}};
int sum=0;
int index1;...
cool.
--- Update ---
Found a solution (?) to the problem.
...
ArrayList <Integer> numbers = new ArrayList<Integer>();
int position=0;
I have found that this is the case.
:o Okay.I'll get right to it.
--- Update ---
Ok so am working using Sets now (for the first time) and i discovered it does not allow duplicates which is good.but problem is,when i run the code...
Here is my code which works fine
public class Arrays {
public static void main (String[]args) {
int maxNum= 0;
int minNum = 100;
int position=0;
ArrayList...
Thanks.I have moved away from this problem as i now understand i cannot prevent the random number generator from generating a specific number twice.
Try reading this
Error Message:
use the code tags
[code] ...place code here... [\code]
that way it's easier for people to read your code and help direct you towards a solution.
Let say i have this code:
public class MyRandomStuff {
public static void main (String[]args) {
int [] randomNumbers = new int[5];
for (int i=0; i<randomNumbers.length; i++) {
...
Check the location of your .java files, are there .class files there also?
--- Update ---
Also, check out this video on Youtube and follow the instructions carefully.
...
Finally got help from my tutor.This is one possible way to do it.
import java.util.*;
public class ArrayTest{
public static void main (String[]args){
Scanner input = new Scanner(System.in);...
import java.util.*;
public class ArrayTest2 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[] numbers = {8, 11, 19, 84};
That was VERY helpful
This is what i eventually did
import java.util.*;
public class ArrayTest {
public static void main (String[]args) {
Scanner input = new Scanner(System.in);
int [] number...
import java.util.*;
public class ArrayTest {
public static void main (String[]args) {
Scanner input = new Scanner(System.in);
int [] number = new int[5];
...