Problem with making LinkedList public

public LinkedList list= new LinkedList(); ????
I keep getting errors, like "statement expected"
please help

Dear tony874489,
You cannot declare a public object in a method. You have to remove the public if you want it in the method.
If you want the public,declare it as a global variable. That should solve your problem.
Thanks
Joey

Similar Messages

  • Problem with making a database link.

    Hello All
    I got a problem with making a database link.
    When I execute this query
    CREATE PUBLIC DATABASE LINK DBNAME
    CONNECT TO database IDENTIFIED BY name
    USING 'DBNAME.europe.company.com';
    I am using other names because its private information
    But when I look at the table dba_db_links I see this
    OWNER | DB_LINK | USERNAME |HOST
    PUBLIC| DBNAME.europe.company.com| name| DBNAME.europe.company.com
    So the DB_Link name is changed. And this causes a problem with my asp website. I get the fault message
    ORA-02085: database link DBNAME.europe.company.com connects to DBNAME
    Cause: a database link connected to a database with a different name. The connection is rejected.
    The global_names = true and I prefer to keep it that way.
    So does anyone knows what is wrong about my Query or how I can change the DB_Link name.
    Thanks for the support,
    Remco

    Thanks for the help Mohit
    But thats whats I was doing.
    The query in the first post is the same as what you are posting.
    But by an (for me) unknown reason the database converts DBNAME to DBNAME.europe.company.com

  • PROBLEM WITH MAKING RECTANGLE

    i have a problem with illustrator cs6.. before this i've tried cs5..but when i use cs6 i have a problem when making a rectangle..when i make rectangle let say 3cm x 3cm without border i mean stroke i got the exact size but then when i use border only i mean stroke only without feel with the same box the size change into 3.0555 not 3 cm anymore..so is there anything that i missed tick out in ai cs6? reply me asap...

    Could be that "use preview bounds" is turned on in the preferences. Here is the same rectangle with that preference off (left), and on (right).
    The rectangle was not changed in any way between these two screen shots; just the preference.

  • Q10, problem with making a Security Copy

    Two weeks ago, I haven't been able to make a Security Copy. A frame with "An error has been produced while making a security copy" (translated from Spanish) appears every time I try to make one.
    It also says "It might have occurred a problem with the smartphone or the connection during the security copy. Verify that the smartphone is turned-on and is connected".
    CAN YOU PLEASE HELP ME???
    Thanks. Regards,
    J

    Are you Spanish speaking?
    Estimado Usuario, lamentablemente este foro es solo para el idioma Ingles, sin embargo lo podemos ayudar en el foro especializado en Español, esta es la dirección donde gustosamente lo podemos atender:
    http://foros.blackberry.com/t5/Foros-de-Soporte-General/ct-p/bscf_es
    Muchas gracias
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problem with making gifs

    I'm using the photoshop portable cs5 and I'm having a problem with this bar i have detach in red, just doesn't appear. I have installed others photoshop, but I keep with the same problem. Someone can help me? Thanks, anyway. Sorry for the bad english hehe

    Don't worry about your English.  You have a bigger, ethical problem.
    You have an illegal version of Photoshop that must be wiped off your hard disk immediately.
    Message was edited by: station_two

  • Problem with making 16:9 PAL DVD

    Hello!
    I'm trying to make a 16:9 PAL DVD in Adobe Encore and everything is perfect untill I play the DVD on my TV (it works just fine on my computer). Two videos included in the DVD were made in Adobe Premiere and one of them works without any problems (it is just a slideshow), but part of the other footage isn't shown on the TV - the video is being played on the TV with no black lines around it, but it is like cropped. The video was made in 16:9 and I've also checked the settings on my DVD player, which look just fine to play a 16:9 DVD. I think that this problem had occured while making the DVD in Adobe Encore and I'd like to know how to solve it if anyone of you can tell me how.
    Thanks for your help.

    OK, the PrPro Project/Sequences are set to 16:9 PAL and Exported as that, into an Encore 16:9 PAL Project, right, or did you use Adobe DL for transferring the Assets over?
    On a computer, the DVD plays fine, but part of one of the Timelines is black, when the DVD is run on a set-top player, hooked to a TV. The other Timeline is shown much smaller, with black bars around it. Is that correct?
    Can you test the DVD on another set-top player, and another TV? Maybe stop by your local electronics store and ask them to play it for you. What happens there?
    As there are differences in the setting of both players and TV's regarding wide-screen, it could be as simple as those settings. However, that would not explain why half of one Timeline is black. Now, poor choice of media, or too high a burn rate could account for some of that.
    What media did you use, and what was the burn rate?
    Good luck,
    Hunt

  • Problem with Exchange 2010 Public Folders after installing Exchange 2013 in my environment.

    I currently have an Exchange 2010 server with all the roles installed.  Before installing Exchange 2013, I was able to launch the Public Folder Management Console but now I get an error.  When I installed Exchange 2013, I got an error saying I
    had a instance of Exchange 2000 or Exchange 2003, but I didn't have any of these servers left.  There was still something in AD referencing my old server. I went into ADSIedit and deleted an old administrative group.  This deletion caused my access
    to my public folders to get messed up.  I followed this article, http://blog.bruteforcetech.com/archives/766, and I was able to gain access back in my outlook client but I still can't see the public folders in OWA.  I also get this error when
    trying to access either Default or System Public Folders.  "Cannot complete the operation because there isn't an available public folder database on server 'ExchangeServer'. It was running the command 'get-publicfolder - getchildren -identity '\'
    -server 'ExchangeServer' "
    My Public Folder Database exists and is mounted.  Any help is appreciated.

    Hi Belinda,
    Thank you for responding.  Yes you do understand my problem correctly.  One correction is that after deleting this entry in ADSIEdit, we couldn't access public folders at all either in Outlook or OWA.  I followed these steps in the below article:
     http://blog.bruteforcetech.com/archives/766
    After following these steps and recreating the entry on FolderHieachies in ADSI edit, I was able to gain access to the public folders again through Outlook, but still can't see them in OWA and can't access them in Public Folder Management Console.
    Here are the results to your requests:
    et-PublicFolder -Recurse | Format-List Name
    Name : IPM_SUBTREE
    Can't get the public folder database using legacy distinguished name '/O=HEROIX CORPORATION/OU=EXCHANGE ADMINISTRAT
    GROUP (FYDIBOHF23SPDLT)/CN=CONFIGURATION/CN=SERVERS/CN=EXCHANGE2010/CN=MICROSOFT PUBLIC MDB'.
        + CategoryInfo          : NotSpecified: (:) [Get-PublicFolder], TaskInvalidOperationException
        + FullyQualifiedErrorId : B546E0B0,Microsoft.Exchange.Management.MapiTasks.GetPublicFolder
    [PS] C:\Windows\system32>Get-PublicFolder -Identity \NON_IPM_SUBTREE -Recurse | Format-List Name
    Name : NON_IPM_SUBTREE
    Name : EFORMS REGISTRY
    Can't get the public folder database using legacy distinguished name '/O=HEROIX CORPORATION/OU=EXCHANGE ADMINISTRATIVE
    GROUP (FYDIBOHF23SPDLT)/CN=CONFIGURATION/CN=SERVERS/CN=EXCHANGE2010/CN=MICROSOFT PUBLIC MDB'.
        + CategoryInfo          : NotSpecified: (:) [Get-PublicFolder], TaskInvalidOperationException
        + FullyQualifiedErrorId : B546E0B0,Microsoft.Exchange.Management.MapiTasks.GetPublicFolder
    Also the msExchOwningPFTree attribute should be correct because this was edited with the correct value when I followed the instructions in the above article:
    CN=Public Folders,CN=Folder Hierarchies,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Heroix Corporation,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=hero,DC=net

  • Problem with making picture invisible

    Hi,
    I prospect forums but I have not found solutions to my problems. I
    want to display different pictures at different times or successively.
    I want to display one picture, wait until the user click onto it
    (I know how do it), then display another picture in the place of the
    first and so blinking (making invisible and inactive) the first.
    Sorry for this simple request. Thanks in advance for your help.

    Hi,
    I send here the program I would like to realize.
    The user must clicks a certain number of times (once or five times) on a red rectangle before two shapes (A and B, once in the left and once in the right) appear and the subject chooses either one. The same thing with another pair of stimuli (C and D) after completion of a number of clicks required on the rectangle. One sequence consists on 2 presentations of the pair AB stimuli with each stimuli once at right and once at left + 2 presentations of CD stimuli with each stimuli once at right and once at left.
    I want to randomize order of events, so I will create (no doing yet) 24 sequences of possible order of events (not only display AB_BA_CD_DC, like the example, here in the block diagram, but too AB_DC_BA_CD, for example). The choice of the sequence is randomized with a random number (multiply by one for the moment in order you see immediately the events when you run the VI).
    I use ring picture to display the stimuli and enumerated constant for the type of stimuli I display. What I would like to do is using only 2 rings indicators, but I have seen when I did that, the program doesn't work. I was "forced" to use one ring each time. It will be more costly for me to write because I must create property node_property visible_false for other ring each time and in this cas I would use 288 rings.
    My question is how can I do for using only 2 rings? And am I forced to use sequence structure?    
    Thanks in advance for your help.
    sequence 1 effort à FR5.zip (849 kb)
    Attachments:
    sequence 1 effort à FR5.zip ‏849 KB

  • Problem with Socket and public IP

    Hi.
    I was create a program to tchat with my friend.
    This program turn good in à local network but i obtain
    A Connection refused: connect exception when I want
    to communiqué by internet :
    I write
    Socket client = new Socket("my public IP",12347);And I was configurate my router to mapping 12347 port.
    Help me please.

    the exception is :
    Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)

  • Problem with making symbols stay with their own graphics

    Hello,
    In my flash document I have different muscles of the body that are each symbols(some muscles are in groups as one symbol). I am making a drag and drop flash game where you can drag and drop the muscles onto their targets on the body. The problem is, is that the muscles used for the targets need to be black, but when I changed the color of the targets, it changed the color of the regular muscles also. I do know that both the target and the actual muscles are both created from the same instance. However, I do not know if that is what is causing this to happen or if it is something else.
    Please help me!
    Thanks,
    A Student
    P.S. I also have the attached document I am working on below.

    so, did you even bother to try this before you posted the question verbatim from your homework?

  • [solved] problem with making dwm for configuration

    hello everyone,
    i installed and made the dwm following the instructions of this site
    https://wiki.archlinux.org/index.php/dw … mmended.29 which seemed to work fine. now i was configuring my config.h in my ~/dwm folder, which leads to the followng error:
    makepkg -efi
    ==> Making package: dwm 6.0-2 (Tue Sep 30 10:26:22 CEST 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:288:0:
    config.h:35:2: warning: missing braces around initializer [-Wmissing-braces]
    1;
    ^
    config.h:35:2: warning: (near initialization for 'layouts[3]') [-Wmissing-braces]
    config.h:35:2: warning: initialization makes pointer from integer without a cast
    config.h:35:2: warning: (near initialization for 'layouts[3].symbol')
    config.h:35:3: error: expected '}' before ';' token
    1;
    ^
    dwm.c: In function 'keypress':
    dwm.c:1087:2: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    here is my config.h
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#444444";
    static const char normbgcolor[] = "#222222";
    static const char normfgcolor[] = "#bbbbbb";
    static const char selbordercolor[] = "#005577";
    static const char selbgcolor[] = "#005577";
    static const char selfgcolor[] = "#eeeeee";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 8, False, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const int nmaster = 1; /* number of clients in master area */
    static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    1;
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "lxterminal", NULL };
    static const char *browsercmd[] = { "dwb", NULL };
    static const char *surfcmd[] = { "surf", NULL };
    static const char *mailcmd[] = { "thunderbird", NULL };
    /*static const char *browsercmd[] = { "dwb", NULL };
    static const char *browsercmd[] = { "dwb", NULL };
    static const char *browsercmd[] = { "dwb", NULL };*/
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_w, spawn, {.v = browsercmd } },
    { MODKEY, XK_s, spawn, {.v = surfcmd} },
    { MODKEY, XK_m, spawn, {.v = mailcmd} },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_i, incnmaster, {.i = +1 } },
    { MODKEY, XK_d, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_z, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    i dont understand the error, but as i tried the same with the default config.h, its not due to my changes. i dont get the error when using
    makepkg -i
    but my changes weren't taken (obviously). for some reason, i cant overwrite the default package!?
    greets lizzy
    Last edited by caravanlizzy (2014-09-30 14:47:16)

    The warning messages are as clear as it gets:
    config.h:35:2: warning: missing braces around initializer [-Wmissing-braces]
    1;
    ^
    'config.h' is the filename, '35:2' is the position - 35th line, 2nd column. You even get the line in question printed out: '1;' with and "arrow" pointing to it from below - '^'.

  • Problem with making text 3D

    Making text a 3d repousse object is easy enough, but if I add filters to the text, select it and then try to make a repousse object FROM the selection, the text gets rendered in 3d, but
    there is no hole between letters like O and P and A. Is there anyway I can cut holes into these letters? If not then how else can I make 3d text with filters on them?
    Any help would be greatly appreciated, Thanks

    See if this helps:
    http://forums.adobe.com/message/4238532#4238532

  • Problem with making remote toppics when linking with external chm

    Hi to everybody,
    i m novice to robohelp html when i am creating chm files from
    my exsisting project that is a robohelp word project which take
    input doc file in Robohelp word and create .hpj poject and then i
    open this .hpj project into robo help Html to create chm file .
    when i m opening this project into robohelp html it is making .xpj
    project from the hpj project .
    but at this time poject has some links with external chm but
    when i m making hyper link with external chm using Remote toppic
    option this option i couldn't unable to found any where in robohelp
    html plz anyone can know help me out from this
    probelm....................plz...................i need help
    ,,,,,,,,,,,,,,,,,,,if anyone know how to remote toppic occur in
    such situation plz let me know,......
    Thx
    Rgard's

    Hi Ruziyo and welcome to the RH forums.
    If you are opening up your project via the XPJ file in
    RoboHelp HTML the remote topic should be able to be found by:
    - Highlighting what is to be hyperlinked.
    - Clicking the Insert > Hyperlink menu item (or use the
    toolbar icon or Cntl + K).
    - Click on the arrow to the right of the "Link To" field.
    - Select the Remote Topic option.
    - Select the CHM file that contains the topic to which the
    hyperlink is linked to.
    - Select the required topic.
    You will be asked to copy the CHM into your project
    directory. Hope this answers your question. If not, please do come
    back.

  • Problem with making a radio button default

    i am making a radio button default using : setSelected(true) method . the radio button is shown as selected but the event that should happen when the radio button gets selected is not done. should fire an event in code? help me out.

    private JRadioButton normal_ves_RB = new JRadioButton();
    private JRadioButton Barge_ves_RB = new JRadioButton();
    ButtonGroup bg=new ButtonGroup();
    bg.add(normal_ves_RB);
    bg.add(Barge_ves_RB);
    normal_ves_RB.setSelected(true); // here i am making this button default. its not firing the event bydefault.
    normal_ves_RB.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    normal_ves_RB_actionPerformed(e);
    private void normal_ves_RB_actionPerformed(ActionEvent e)
    how to make my action performed work when i first run this code by default. setSelected is making the button default but the event is not fired.

  • Problem with making a playlist.

    Hey everyone!
    I got a GB Zen MP3 player for Chistmas. I really like it and have been using it frequently. I have easily made several playlists with it already, but lately it has been acting weird the last two days.
    I created a new playlist. I'll add a song to it, and it goes to that list. But, when I add another song, it deletes or overwrites the previous song, so there is only one song on there at a time. Sometimes it will let me put two on it, but when I add a third, both of the other two are deleted.
    I had a playlist on there with about 8 songs, and I went to add another, and it deleted the entire playlist and only had that one song on there that I just added.
    I have no idea what I am doing wrong! It worked great before, but now it's doing this. If anyone could help me, I would greatly appreciate it.

    The latest Creative MediaSource and its plugin for your MP3 player will fix the problem. Creative MediaSource 5 and its various plugins are now officially available for download at your respecti've product download sites. The main Creative MediaSource 5 Player/Organizer:
    Creative MediaSource Player/Organizer 5.0.38 (22 Dec 2006)
    For mass storage series ZEN/Muvo players:
    Creative Music Player (Mass Storage Series) Plugin 5.0.07 for Creative MediaSource 5 Player/Organizer (22 Dec 2006)
    For PlaysForSure ZEN players:
    Creative PlaysForSure Devices Plugin 5.00.36 for Creative MediaSource 5 Player/Organizer (22 Dec 2006)
    For non-PlaysForSure NOMAD/ZEN players:
    Creative ZEN and NOMAD Jukebox Plugin 5.00.22 for Creative MediaSource 5 Player/Organizer (27 Dec 2006)
    For CD Burning function:
    Creative CD Burner Plugin 5.0.3 for Creative MediaSource 5 Player/Organizer (22 Dec 2006)
    For selected DTS supported Sound Blaster cards:
    Creative DTS Neo:6 Plugin 5.00.05 for Creative MediaSource 5 Player/Organizer (22 Dec 2006)

Maybe you are looking for