topsykrett2306's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
2 (0 per day)
Joined:
25-November 12
Profile Views:
80
Last Active:
User is offline Nov 25 2012 08:59 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   topsykrett2306 has not set their status

Posts I've Made

  1. In Topic: JApplet - parameters from html and declaring array size from init()

    Posted 25 Nov 2012

    View Postpbl, on 25 November 2012 - 08:11 PM, said:

    Why limiting yourseld with a MAXIMUM value
    You receive the array size from the .HTML ? So

    class MyClass extend JApplet {
    
       int[] myArray;
    
       public void init() {
            String maxTaxpayersStr = getParameter("maxNumberOfTaxpayers");  
            int maxTaxpayers = Integer.parseInt(maxTaxpayersStr);  
            myArray = new int[maxTaxpayers];
    
    


    Works perfect. I was failing to declare my array properly.. Ugh. Thank you so much!

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

topsykrett2306 hasn't added any friends yet.

Comments

topsykrett2306 has no profile comments yet. Why not say hello?