Doesn't NVL work with Assosiative array elements

Doesn't NVL work with Assosiative arrays? When i tried to UPDATE empdtls table with the values stored
in v_ename array, i got no_data_found error because
the query, select ename bulk collect into v_ename.....returns only 5 rows and v_ename(6) was null. So i tried NVL and COALESCE for v_ename(6). I couldn't succeed.
Any workarounds?
create table empdtls
(ename1 varchar2(30),
ename2 varchar2(30),
ename3 varchar2(30),
ename4 varchar2(30),
ename5 varchar2(30),
ename6 varchar2(30),
location varchar2(30));
SQL> insert into empdtls(location) values ('NY');
1 row created.
SQL> commit;
declare
type ename_arraytyp is table of varchar2(100) index by binary_integer;
v_ename ename_arraytyp;
begin
select ename bulk collect into v_ename from emp where sal>2900;
dbms_output.put_line(v_ename(1));
dbms_output.put_line(v_ename(2));
dbms_output.put_line(v_ename(3));
update empdtls
           set ename1=v_ename(1),
               ename2=v_ename(2),
               ename3=v_ename(3),
               ename4=v_ename(4),
               ename5=v_ename(5),
               ename6=NVL(v_ename(6),'No Name')
           where location='NY';
commit;
end;
declare
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at line 9Message was edited by:
J.Kiechle

If you used a schema level collection type (i.e. created with CREATE TYPE) you could also use the unsupported SYS_OP_CEG function which appears to return collection elements for given index values without error if the element does not exist.
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> CREATE OR REPLACE TYPE varchar2_table
  2  AS
  3     TABLE OF VARCHAR2 (4000);
  4  /
Type created.
SQL> DECLARE
  2     v_ename varchar2_table;
  3  BEGIN
  4     SELECT ename
  5     BULK COLLECT INTO v_ename
  6     FROM   emp
  7     WHERE  sal > 2900;
  8
  9     UPDATE empdtls
10        SET ename1 = sys_op_ceg (v_ename, 1),
11            ename2 = sys_op_ceg (v_ename, 2),
12            ename3 = sys_op_ceg (v_ename, 3),
13            ename4 = sys_op_ceg (v_ename, 4),
14            ename5 = sys_op_ceg (v_ename, 5),
15            ename6 = sys_op_ceg (v_ename, 6)
16      WHERE location = 'NY';
17  END;
18  /
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • Working with MultiDimensional arrays

    Hi,
    Just wondering if anyone could help with a problem Im
    having with multi-dimensional arrays in Java:-
    I want to create a multi-dimensional array (e.g. 3 dimensions). I know this can be defined by code such as:-
    int[ ][ ][ ] my_array = new int[10][10][10];
    (would create a 10x10x10)
    My problem is that I want to address the array with indexes that aren't known at compile time, trying to do this causes an error:-
    e.g. my_array[0][0][0] = 1; is ok (i.e. the element at 0,0,0 is set to 1)
    but if the indexes 0,0,0 are replaced by the return value of some function,
    e.g.
    my_index1 = generateIndex(x, y, .... etc);
    my_index2 = generateIndex(a, b, ...etc);
    my_index3 = generateIndex(f,g, .. etc);
    (where generateIndex is some function that returns an integer)
    and the array element set with
    my_array[my_index1][my_index2][my_index3] = 3;
    This generates an error. I know that this problem can be overcome through the use of pointers in C++ but since Java doesn't use pointers, im a bit stuck!
    I have come across a method that overcomes this for a 1D array, using the setInt function of the Array class, e.g.
    Array.setInt(my_1Darray, 0, 1); (would set the first value of my_1Darray to 1);
    (i.e. Array.setInt(array_name, int index, int value);
    But I can't see how this works with multidimensional arrays.
    If anyone could shed any light on this problem, that would be great.
    Thanks,
    Peter

    public class NDArray {
            public static void main(String[] s) {
                    int[][][] _3D = new int[10][10][10];
                    for (int c = 0; c < 1000; c++)
                            _3D[rnd()][rnd()][rnd()]=rnd();
                    for (int i=0; i < 10; i++) {
                      for (int j=0; j < 10; j++) {
                        for (int k=0; k < 10; k++) {
                            System.out.print(_3D[i][j][k]);
                            System.out.print(" ");
                      System.out.println();
                    System.out.println();
            static int rnd() {return (int) (10*Math.random());}
    /* output (example):
    7 0 0 4 9 9 3 0 0 2
    0 1 8 9 6 0 0 0 0 0
    5 3 0 5 0 0 1 0 0 3
    5 6 0 5 0 0 3 0 0 0
    0 0 0 0 4 0 0 5 8 6
    0 9 0 9 0 1 0 2 0 0
    3 3 8 6 0 0 1 0 3 4
    9 6 7 0 0 0 3 6 6 3
    2 0 8 7 0 1 4 0 7 0
    8 0 4 4 3 0 0 5 4 0
    0 0 0 0 3 0 1 0 0 4
    9 0 8 9 1 0 9 0 9 0
    0 8 3 4 1 0 8 0 0 2
    3 0 0 7 3 3 0 5 0 0
    0 0 0 1 4 6 0 0 0 3
    3 5 8 5 8 0 8 2 0 4
    4 0 1 7 0 1 0 4 4 0
    6 0 5 0 0 4 0 8 1 0
    0 0 6 6 2 0 0 4 5 0
    0 6 7 0 4 0 7 5 0 0
    2 4 0 5 0 0 0 2 1 7
    0 6 0 9 0 0 6 1 2 0
    0 5 9 0 1 2 4 0 8 6
    0 0 8 0 0 3 3 8 0 0
    4 7 5 9 0 8 1 0 0 9
    2 0 0 3 0 0 8 3 0 7
    0 6 0 6 0 0 0 0 1 0
    0 9 9 8 4 2 0 0 7 2
    4 0 0 9 0 0 0 1 0 6
    7 0 6 5 2 3 7 8 0 2
    0 0 3 5 0 0 0 0 0 0
    3 0 0 0 0 2 0 0 6 0
    6 0 3 3 6 0 4 0 1 6
    0 0 7 2 0 8 0 0 0 0
    0 0 9 0 6 8 2 1 0 0
    9 0 4 1 3 9 3 2 7 7
    0 3 1 0 3 0 0 9 0 5
    0 0 0 0 6 0 4 8 0 5
    1 8 4 6 7 0 0 4 4 0
    0 4 8 0 0 0 6 0 4 0
    0 9 3 0 0 0 6 0 0 8
    6 8 2 9 6 0 0 7 9 0
    7 1 9 0 0 5 0 2 3 0
    0 0 0 0 9 9 0 7 0 9
    9 8 8 2 9 8 0 5 8 0
    2 3 0 4 0 4 1 0 6 9
    3 3 0 0 0 0 7 6 9 3
    6 2 2 1 0 5 8 3 0 6
    0 6 0 0 0 0 0 0 7 5
    0 6 0 0 0 3 3 0 2 0
    3 6 5 5 8 2 0 9 1 0
    8 0 7 0 9 0 9 0 2 0
    0 2 9 0 0 1 2 4 0 2
    3 1 0 2 0 0 0 0 0 0
    0 5 0 3 8 8 3 0 0 0
    9 0 9 0 5 1 0 9 5 0
    8 0 0 8 8 7 0 3 1 0
    4 0 0 0 1 8 0 9 0 5
    0 0 6 6 0 0 5 2 6 8
    0 4 0 9 0 0 2 0 0 3
    0 5 8 1 7 0 0 4 2 0
    6 5 0 0 2 0 6 8 8 7
    0 0 0 0 3 0 8 4 0 0
    2 3 3 0 0 7 6 8 0 4
    4 1 7 3 8 0 2 3 3 0
    1 5 0 0 4 1 3 7 3 1
    0 0 0 6 0 6 0 0 3 0
    3 7 0 4 5 9 5 5 0 8
    3 8 6 4 0 0 0 1 6 0
    0 0 2 0 2 9 0 0 0 5
    0 5 6 0 5 5 4 0 6 7
    0 2 2 0 9 7 4 2 9 0
    4 0 5 4 8 3 0 0 2 0
    0 0 9 3 3 0 8 8 7 0
    0 7 9 7 0 0 0 7 1 0
    2 0 0 0 5 8 2 0 0 5
    2 4 9 6 6 0 0 0 6 0
    0 6 6 7 0 2 0 0 5 2
    0 9 0 4 8 5 1 0 7 6
    0 0 7 0 4 0 3 8 0 9
    9 4 0 0 0 4 0 0 0 5
    2 0 4 7 7 5 4 0 9 0
    0 0 1 0 5 0 1 0 6 0
    0 6 0 9 0 9 0 4 7 0
    5 9 6 6 2 8 8 4 1 4
    9 7 3 2 7 6 0 2 3 0
    3 1 5 0 8 0 0 0 0 0
    9 0 0 3 0 8 7 0 4 0
    8 6 6 4 0 4 6 4 5 0
    0 0 0 0 0 4 4 0 0 9
    8 8 0 2 0 0 0 1 0 0
    6 2 1 1 9 0 5 1 0 0
    0 9 1 0 6 0 4 0 0 0
    9 4 0 3 0 1 0 7 6 0
    0 9 0 7 8 6 0 5 0 0
    0 8 8 9 0 5 7 0 0 0
    0 4 5 1 6 0 5 2 9 3
    6 0 0 0 0 0 0 9 1 0
    5 9 1 9 2 5 3 0 0 9
    2 9 5 1 7 0 0 0 9 0
    */Seems to work just fine. How is your code different from mine?

  • Hi! I work with Photoshop/Premiere Elements 10 on my snow leopard (10.6.8) without problems since years. Now I want to move over to the new MacBook Pro (and lion 10.7.5) but only Photoshop runs on it, every Premiere version (I downloaded Elements 12 and f

    Hi! I work with Photoshop/Premiere Elements 10 on my snow leopard (10.6.8) without problems since years. Now I want to move over to the new MacBook Pro (and lion 10.7.5) but only Photoshop runs on it, every Premiere version (I downloaded Elements 12 and further more) stops installation and shows Installation ERROR: ASU has quit unexpectedly, Media DB Error: 18. Please help!

    run the cleaner and retry installing per, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Any pre keyed effect sites that work with adobe premiere elements 11?

    I have been trying to find a legit non scam/virus site with pre keyed effects like explosions, gunshot fire, fire, and other effects like that.
    Most sites that I've tried are virus' or only work with imovie.
    Anyone know of any good sites that have pre keyed effects that works with adobe premiere elements 11? (they don't have to look good, I am just practicing with those)

    In my book "Cool Tricks & Hot Tips for Premiere Elements 11", I recommend and show you how to use clips from the wonderful site http://detonationfilms.com/ to create explosive effects.

  • Why doesn't LightScribe work with my Snow Leopard?

    Why doesn't LightScribe work with my Snow Leopard? It downloaded and is in my printer folder, but won't open.

    Are you really still running 10.6.3? If you are you should run the combo update as many issues were resolved within the updates themselves.
    Mac OS X 10.6.8 Update Combo v1.1

  • It wanted to know if xcelsius works with the following elements of Excel:

    Post Author: Leo
    CA Forum: Xcelsius and Live Office
    It wanted to know if xcelsius works with the following elements of Excel:
    Complement Solver, Tools of Analysis, Matríces, dynamic Boards, Limit of anidamiento for formulae in Excel to to be utilized in Xcelsius. 
    I expect to be able to have answers of the requested information, since is of a lot of importance, to be able to do a panel in xcelsius. 
    Greetings

    Post Author: Leo
    CA Forum: Xcelsius and Live Office
    It wanted to know if xcelsius works with the following elements of Excel:
    Complement Solver, Tools of Analysis, Matríces, dynamic Boards, Limit of anidamiento for formulae in Excel to to be utilized in Xcelsius. 
    I expect to be able to have answers of the requested information, since is of a lot of importance, to be able to do a panel in xcelsius. 
    Greetings

  • Why doesn't Nike+ work with the 1st Gen Ipod touch with 2.1 software?

    Why doesn't Nike+ work with the 1st Gen Ipod Touch with 2.1 software?

    The second gen iPod Touch has firmware version 2.1.1(5F138) whereas the 1st Gen only allows 2.1 (5F137). Don't know if that has anything to do with it, but it's likely.
    Why doesn't Apple allow those with the Nike+iPod sports kit to use their external sensor on the 1st Gen iPod Touch?!?! I can't see why the sensor would be incompatible with the right firmware upgrade!!

  • The camera doesn't work on my iPhone 5s. It doesn't even work with camera apps. Please help!

    The camera doesn't work on my iPhone 5s. It doesn't even work with camera apps. Please help!

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414

  • Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

    Hello I have a MacBook (late 2007) with a wireless-card from Broadcam, the card works with WEP and the classic configuration over rc.conf very well. But I can't get the card running with WPA and the net network-profiles.
    Here is the link to the driver - http://www.broadcom.com/support/802.11/linux_sta.php
    eth2 = wireless-card
    eth1 = firewireanything
    eth0 = wired-card
    rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.utf8"
    HARDWARECLOCK="UTC"
    USEDIRECTISA="no"
    TIMEZONE="Europe/Berlin"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    #MODULES=(sky2 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="macbook"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    eth0="eth0 192.168.1.220 netmask 255.255.255.0 broadcast 192.168.1.255"
    INTERFACES=(!eth0 !eth1 eth2)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.1.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    NETWORKS=(wireless)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng network net-profiles netfs alsa crond portmap fam hal)
    /etc/network.d/wireless
    CONNECTION="wireless"
    INTERFACE=eth2
    HOSTNAME=macbook
    IP="static"
    IFOPTS="192.168.1.225 netmask 255.255.255.0 broadcast 192.168.1.255"
    GATEWAY=192.168.1.1
    DNS1=192.168.1.1
    # Wireless Settings (optional)
    ESSID=3Com
    #KEY=
    IWOPTS="mode managed essid $ESSID channel 11"
    #WIFI_INTERFACE=wlan0 # use this if you have a special wireless interface
    # that is linked to the real $INTERFACE
    #WIFI_WAIT=5 # seconds to wait for the wireless card to
    # associate before bringing the interface up
    USEWPA="yes" # start wpa_supplicant with the profile
    WPAOPTS="" # use "" for normal operation or specify additional
    # options (eg, "-D ipw")
    # see /etc/wpa_supplicant.conf for configuration
    Can I set here the WPA/WPA2-Key also? Why here ESSID? Do I need still a configuration in wpa_supplicant.conf?
    Thats very confusing and not explained.
    WPAOPTS? Do I need to add something like "-D wext"?
    /etc/wpa_supplicant.conf
    # This is a network block that connects to any unsecured access point.
    # We give it a low priority so any defined blocks are preferred.
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
    network={
    key_mgmt=NONE
    priority=-9999999
    network={
    ssid="3Com"
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk="topsecret"
    priority=5
    # WPA2
    # proto=WPA RSN
    I need help. Please
    Last edited by hoschi (2009-01-04 20:21:58)

    fwojciec wrote:If this info is not in the wiki it might be worth it to add it -- it's all detailed in /etc/network.d/examples/complete.example though.
    Thats the reason why I was so confused.
    My new and well working configuration:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.utf8"
    HARDWARECLOCK="UTC"
    USEDIRECTISA="no"
    TIMEZONE="Europe/Berlin"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    #MODULES=(sky2 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="macbook"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    eth0="eth0 192.168.1.220 netmask 255.255.255.0 broadcast 192.168.1.255"
    INTERFACES=(!eth0 !eth1 !eth2)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.1.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    NETWORKS=(3com)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng network net-profiles netfs alsa crond portmap fam hal)
    CONNECTION="wireless"
    DESCRIPTION="Very verbose complete wireless example"
    INTERFACE=eth2
    HOSTNAME=macbook
    # Interface Settings (use IP="dhcp" for DHCP)
    IP="static"
    IFOPTS="192.168.1.225 netmask 255.255.255.0 broadcast 192.168.1.255"
    GATEWAY=192.168.1.1
    # DNS Settings (optional)
    DOMAIN=localdomain
    DNS1=192.168.1.1
    DNS2=
    SEARCH=
    # Standard Wireless Settings
    ESSID=3Com
    SECURITY=wpa-config # One of wep, wpa, wpa-config, none
    KEY=""
    # Scans to see if network is available before connecting (reccomended)
    SCAN="YES"
    # Time to wait to connect to a network. Default 15.
    TIMEOUT=10
    # Pass *custom* options to iwconfig. Usually not needed (optional)
    IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"
    # Any extra arguments for wpa_supplicant
    WPA_OPTS=
    # For SECURITY='wpa-config' only - filename of a wpa-supplicant config
    WPA_CONF=/etc/wpa_supplicant.conf
    # This is a network block that connects to any unsecured access point.
    # We give it a low priority so any defined blocks are preferred.
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
    network={
    key_mgmt=NONE
    priority=-9999999
    network={
    ssid="Linksys"
    proto=WPA RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk="areulookingatmybreasts"
    priority=5
    network={
    ssid="3Com"
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk="nomam"
    priority=5
    # WPA2
    # proto=WPA RSN
    There are also profiles for the Linksys-Router and for wired cable.
    Thanks for the help!
    Last edited by hoschi (2009-01-04 20:21:23)

  • Trying to use .split with an array element

    I have tried multiple ways to split an array element into its components that are separated with a space with this code:
    public static void compareHand(String[] hand){
            for (int i = 0; i < hand.length; i++){
                System.out.println(i);
                System.out.println(hand);
    String[] tokens = hand[i].split("\\s");
    System.out.println(tokens.length);
    for (int j = 0; j < tokens.length; j++){
    System.out.println(tokens);
    I keep getting strange output like the following:
    King of Spades
    3
    [Ljava.lang.String;@10b62c9
    [Ljava.lang.String;@10b62c9
    [Ljava.lang.String;@10b62c9
    where I am expecting:
    King of Spades
    3
    King
    of
    Spades
    Any ideas where I am going wrong?

    public static void compareHand(String[] hand){
             for (int i = 0; i < hand.length; i++){
                  System.out.println(i);
                  System.out.println(hand);
    String[] tokens = hand[i].split("\\s");
    System.out.println(tokens.length);
    for (int j = 0; j < tokens.length; j++){
    System.out.println(tokens); // your error is on this line. Hint ... System.out.println(tokens[...]);

  • Why doesn't Timecapsule work with Windows 7?

    I've been trying for a week and it just doesn't work. All I have is an expensive network switch not a network drive as it constantly crashes under Windows 7 and has to be unplugged and reinstalled only to crash again. I have a BT Homehub 3 and the Timecapsule does not work with it.

    jakeloveslucy wrote:
    Though bridging the Time Capsule might prevent some issues, it also takes away some functionality. Also, Apple will not support troubleshooting that setup. It would be recommended to disable the wireless mode on the BT Homehub device. Time Capsule prefers to be the main router, it works best that way.
    BT hub provides voip / phone services.. you will not be able to use any of them if you bridge it. And disabling wireless still doesn't take away double NAT if you keep the TC as router.
    In fact it is harder than that. Because most ISP in the UK use pppoa authentication you cannot bridge the modem. So I am afraid you are stuck with bridging the TC or double NAT.. turning off wireless or not in the TC is no great issue.. they can work together.. simply by manually locking channels instead of auto selection.

  • Reference to Array of Clusters with an array element

    Hi,
    I have an array of clusters CONTROL (calling it as "top level cluster array") with one of the cluster elements being a cluster array (please see attached).
    I plan to pass "Reference" of this top level cluster to different VIs (like add element VI, insert element VI, delete element VI etc) and access (add/modify delete) the elements in this array.
    In my code, how do I typecast the Array Element (cluster) to the inner cluster (as shown in the figure) ?
    I am using LV RT on PXI.
    Solved!
    Go to Solution.

    You cannot use references in the same way that you use pointers around in C. LabVIEW does not manage memory in the same way that C does. This is actually a good thing, though C programmers find it "cumbersome" or "restrictive". I have also programmed in C, and frankly I prefer LabVIEW's memory management any day of the week.
    You had not initially mentioned that this was going to be done in multiple places at (potentially) the same time. Given that, my recommendation is to look into using Action Engines. They provide a means of basically providing a one-location acccess for your data. By using a single VI to access/modify your data you preclude the generation of race conditions. You may also want to join this with the concept of using variants to provide a means to quickly find your data rather than looping to find the element you're interested in. This technique has been around for a while and it has been discussed before. There are examples floating around. Will need to check to find one. 
    As for your question regarding using the reference method which you tried to employ in your initial approach, that's simply not going to gain you anything. You will still be creating buffers when you try to access the cluster elements. But you already have this information in the array inside the outer for loop, so you're just creating unnecessary extra programming for yourself. 

  • Linksys WRT54G router--Why doesn't it work with my Macbook?

    I have a perfectly functional Apple MacBook (Unibody, late 2008) running Leopard 10.5.6. I have used it to connect to public Wi-Fi but it is unable to connect to my home Linksys WRT54G router. I called Apple Tech Support, and they suggested that I change the wireless channel and/or temporarily remove the WPA encryption. I did both, the computer still could not connect. In System Preferences on the MacBook, it tells me that "AirPort does not have an IP address and cannot connect to the internet." The tech support guy tried to help, but in the end basically told me that the router just plain might not be compatible with Apple products. (My iPod Touch cannot connect either.)
    I can buy a new router, but this one works perfectly for the rest of the computers in the house (PCs) and they're expensive--and there's no guarantee that those will work either.
    So: Does anyone know any solutions short of buying a new router that would make my Linksys compatible with my Macbook AND our home PCs? Or, failing that, a good, WPA-encrypted router that WILL work with both?
    I have a Snow Leopard disk (I just received the computer on Thursday). Would upgrading to Snow Leopard be of any help? I'm planning on doing it anyway one of these days.
    Many thanks in advance,
    Sola Gratia

    You are in the wrong forum but I'll try and help anyway. That model of Linksys router has a long history of not getting along with Apple products. That is not to say it will never work, but it does require that you download and install the latest firmware for the exact model of router that you have. There are multiple sub-models of that router so make sure that you get the right one.
    Once you have done the firmware update, restart your router and try it again. WPA-psk should work but for troubleshooting purposes, turn off encryption and see if you can get your MacBook and touch working. You might want to use WPA2-psk instead of WPA.
    I would hold off on Snow Leopard until you get WiFi working. Nothing like changing to too many things at one time to really mess things up.

  • Elements 12 Layer doesn't align vertically with background. (Elements 12)

    Layer doesn't align vertically with background.

    Your last post was empty. Note that you can't post images via e-mail, you have to use a web browser and do it in the forum at http://forums.adobe.com/thread/1424478?tstart=60.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Why doesn't Norton work with new windows 10 Microsoft Edge

    Norton is telling me I have to use Internet Explorer to work with Window 10.  It is not compatible to Microsoft Edge which is the browser on Windows 10

    Our apologies for the inconvenience, our toolbar can work only after Microsoft allows browser extensions for edge. Please read the information provided in our Knowledgebase article:
    https://support.norton.com/sp/en/us/home/current/solutions/v113038371_EndUserProfile_en_us
    Harry
    Norton Support

Maybe you are looking for

  • I purchased tv show and i am trying to watch the 'new' episodes

    i purchased tv show and i am trying to watch the 'new' episode and can't seem to

  • Compress and rollup the cube

    Hi Experts, do we have to compress and then rollup the aggregates? what whappends if we rollup before compression of the cube Raj

  • Dreamweaver/PHP/MySQL

    I am so far out on the limb of my techno capability that if I even think of leaning forward I will fall into the abyss. Am using Dreamweaver MX 2004 to create PHP view/add/update/delete forms to connect to a MySQL 5.0 database hosted by HotZona.com.

  • Example: Cascading Popup LOVs (Solution using Ajax)

    If you need popup LOVs to depend on each other, here's a way to do it: Put this in the header text of the page: <script type="text/javascript"> function clearFormData(data) { var items = new Array(); items.push(data); for (var i = 0; i < items.length

  • No Data Best Practice

    Hi Gurus, What is the best practice for handling no data for your select? With SQL Server you can do an ISNULL and do an IF on that. But, with Oracle it appears you need to do a Count INTO or use the EXEPTION NO_DATA_FOUND. What is best practice? Is