Search:

Type: Posts; User: DANGEROUSSCION

Search: Search took 0.10 seconds.

  1. How to repaint() a class in a JFrame, with a JTextfield user input

    I have written a;

    Taxi() which draws polygons in the shape of a car, using paint method (Graphics g).
    TaxiCanvas() which creates the amount of taxis to draw using a for loop.

    The problem, I...
  2. [SOLVED] Re: Make a polygon appear in random places using Japplet and Canvas

    the polygon is a car shape, and I've got to make 10 cars appear randomly in the applet. So everytime the Applet is run they all appear in different places.
  3. [SOLVED] Make a polygon appear in random places using Japplet and Canvas

    I can make the circles appear in random places, but need a little direction to make the polygon appear in random places.


    import java.awt.*;

    public class Circle
    {
    private int number;
    ...
  4. Replies
    6
    Views
    1,519

    [SOLVED] Re: Infinite while loop for myKybd

    Thanks for your help. Just gotta sort the results out.
  5. Replies
    6
    Views
    1,519

    [SOLVED] Re: Infinite while loop for myKybd

    where is the solved button on here?
  6. Replies
    6
    Views
    1,519

    [SOLVED] Infinite while loop for myKybd

    This is the task..............

    BirthMonth
    This tutorial will use arrays and methods.

    Using the material presented in lectures, implement and fully test the BirthMonth program. Use methods to...
  7. [SOLVED] Re: Which sort method to use for a String Array to output the index?

    something to do with calling the ArtistArray....

    run:
    Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: output
    at...
  8. [SOLVED] Re: Which sort method to use for a String Array to output the index?

    I've tried again, by trying to alter codes given by University.



    import java.util.Scanner;

    public class BinarySearchString1 {

    public static void main(String[] args) {
    ...
  9. [SOLVED] Re: Which sort method to use for a String Array to output the index?

    OK, I've deleted it for now. I'll have another go first. Cheers
  10. [SOLVED] Re: Which sort method to use for a String Array to output the index?

    this is the code I've written finding an integer index using binary, but I just get it to work with a String array.

    I've change the keyboard to String userType = myKeyboard.nextLine();
    I've...
  11. [SOLVED] Re: Which sort method to use for a String Array to output the index?

    I don't know the correct line to use for the String Array.
  12. [SOLVED] Which sort method to use for a String Array to output the index?

    Hey all,
    I've written a code for finding the index of an int array using a binary search, but I cant find out to do the same with a String Array. Basically the user enters an artist...
Results 1 to 12 of 12