Search:

Type: Posts; User: ojonugwa

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Re: How do you load a java applet in Dreamweaver??

    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...
  2. Re: How do you load a java applet in Dreamweaver??

    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...
  3. Re: How do you load a java applet in Dreamweaver??

    How do i get the applet running in dreamweaver? just like i would in notepad
  4. How do you load a java applet in Dreamweaver??

    Hi.Does anyone have any idea how to load applets in Dreamweaver?
    the only options for codebase are ftp, http, https
  5. Re: What is the difference between a statement surrounded by curly brackets and one that isn't?

    Yeah, the if () {} statement is inside a try catch statement, i just forgot to include it in my question.
  6. What is the difference between a statement surrounded by curly brackets and one that isn't?

    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();
    ...
  7. Replies
    4
    Views
    1,034

    Re: How do you create Date objects?

    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
  8. Replies
    4
    Views
    1,034

    How do you create Date objects?

    Let's say i have this code:



    import java.util.Date;

    public class MyDate {
    Date newDate;

    public MyDate(Date date) {
  9. Re: Can someone explain the logic behind looping through multidimensional arrays?

    Thanks.That explains a lot
  10. Re: Can someone explain the logic behind looping through multidimensional arrays?

    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...
  11. Can someone explain the logic behind looping through multidimensional arrays?

    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;...
  12. Re: Generating random numbers in java without repeating a specific number

    cool.

    --- Update ---

    Found a solution (?) to the problem.


    ...
    ArrayList <Integer> numbers = new ArrayList<Integer>();
    int position=0;
  13. Re: Generating random numbers in java without repeating a specific number

    I have found that this is the case.
  14. Re: Generating random numbers in java without repeating a specific number

    :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...
  15. Finding the index of the maximum number in an ArrayList and removing the number that occupies that index

    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...
  16. Re: Generating random numbers in java without repeating a specific number

    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.
  17. Replies
    1
    Views
    7,265

    Re: need help with this exception error

    Try reading this
    Error Message:
  18. Replies
    4
    Views
    1,316

    Re: Help With I/O Exception Handling!

    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.
  19. Generating random numbers in java without repeating a specific number

    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++) {
    ...
  20. Re: Can compile But can't Execute my programs need advice

    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.
    ...
  21. Re: How do you find the the exact index of an element that matches a search in an array?

    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);...
  22. Re: How do you find the the exact index of an element that matches a search in an array?

    import java.util.*;

    public class ArrayTest2 {

    public static void main(String[] args) {

    Scanner input = new Scanner(System.in);
    int[] numbers = {8, 11, 19, 84};
  23. Re: How do you find the the exact index of an element that matches a search in an array?

    That was VERY helpful
  24. Re: How do you find the the exact index of an element that matches a search in an array?

    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...
  25. How do you find the the exact index of an element that matches a search in an array?

    import java.util.*;
    public class ArrayTest {
    public static void main (String[]args) {
    Scanner input = new Scanner(System.in);
    int [] number = new int[5];

    ...
Results 1 to 25 of 27
Page 1 of 2 1 2