How to get a variable into another block?

Hello,
(I am from Germany, so be patient due my english please)
We do a project at our University where we have to do with wordfrequencies. The app works fine, but it cannot works with the variable wich contains the information to analyse.
Look, I am more or less new in Java and I found a code and modyfied that. So I had to initalize the variable with the data from another class. I did the following thing.
Thats is the class, where the variable is come from:
class Lesen extends HTMLEditorKit.ParserCallback                                        
     String zeile;                                                                           
     String fileName;                                                                
     Wortfrequenz aha;                                 // name of the class where I need the variable                                                                                                                                                                      public Lesen (String fileName)                                                          
          this.fileName = fileName;                                                      
public void handleText(char[] data, int pos)                                            
                String strom = new String (data);                                       
                aha = new Wortfrequenz ();                                              
                aha.verb(strom);                // "strom" is the variable here in this class which caontains the data
....and within the class "Wortfrequenz" I tryed to do the following thing:
import java.util.*;                                                                     
import java.io.*;                                                                       
public class Wortfrequenz
     static String flus;                                                                     
     public void verb (String o)                                                             
          flus = o;                                                                       
HashMap words = new HashMap();                                                         
HashMap stopWords = new HashMap();                                                      
String delim = " \t\n.,:;?!-/()[]\"\'";                                                 
String file;                                                                            
String word;               
Count count;                                                            
                try
                        FileReader kl = new FileReader("stopwords.txt");                
                        BufferedReader mk = new BufferedReader(kl);                     
                        String einlesen;
                        Lesen eins = new Lesen(flus);                                   
                        while ((einlesen = mk.readLine()) != null)                      
                                stopWords.put(einlesen, einlesen);                      
                        mk.close();  if I test the app and do a "System.out" direktly after
flus = o;then I can see that the information is within the variable, but when I test the variable within the next block where I need it, for example after
Count count;or anywhere in this block, then I get
null
null
null
null
null
...if anyone tell me how I can get the information of this variable into the nex block, that would be great.
Thanks a lot for helping...
Stephan

This: public void verb (String o)                                                             
  flus = o;                                                                       
}Is the whole verb method. That's all it does is assign the flus variable. This:{               
HashMap words = new HashMap();   
// etcIs an initializer, which runs as soon as the object is created, ie before the verb method.

Similar Messages

  • How to include one view into another view

    Hi SDN's,
                   Could any please tell me,How to include one view into another view.
    In my requirment.I want to create a 'Z' view for an interface .In that  view i have to take,
    1) Ship-to-email adrr by
                              LIKP-KUNNR -> KNA1-ADRNR
                              KNA1-ADRNR -> ADR6-ADDRESNUMBER.
    2) E-mail addr of person who created the document.i.e
        LIKP-ERNAM -> USR21-BNAME.
        USR21-ADDRESNUMBER ->  ADR6-ADDRESNUMBER 
        USR21-PERSNUMBER -> ADR6-PERSNUMBER.
       In both the case we have to pass ADDRESSNUMBER to ADR6 table.
    If we pass these condition it fails,B'Coz at a time it passes Two ADDRESSNUMBER and a PERSNUMBER.
    So i created two which fetches only the email addr of  person who created the document.and another view fetches Ship-to-email addr.
    Now i want to include the second view into first view . Is it possible?or please
    tell me someother way to get these email addresses in a single view.

    hi
    as per my knowledge, nested views are not possible. However, while creating a new view, selection method will not giv u option to select the already created view(S) except the tables..i think so.
    regards,
    shamim

  • HELP!! How to get iTunes songs into Rezzila

    Im trying to get a song from iTunes into Rezilla. I've tried looking for a program that will convert it into SND, but without money, i'm outta luck. So i've resorted to getting the song out of my iTunes library by using HEXADECIMALs! Since I've never used hexadecimals, I have no past skill or even how to use it. I was wondering if it was even possible and or if it is even possible. But if it is Please email me or leave a comment on how to get this song into REZZILA.
    Thanks,
    Rob

    Rezilla, unless there's another program by the same name, is an editor for the resource and data forks of a file, and as such can have no use with an iTunes track (none I know of, anyway). It certainly cannot convert an audio track to some other audio format. Nor can you convert a track from one format to another by going into the track file with a hex editor; it just not possible.
    I'm not aware of a free converter than can output SND files unless ffmpeg can.

  • How to move a selection into another selection in elements 12

    how to move a selection into another selection in elements 12

    Open picture B, the one you wish to select something from to add to another picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the object. You will see an outline ("marching ants") once the selection is complete
    Go to Edit menu>copy to copy the selection to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position object from picture B.
    In the layers palette you should see picture A as the background layer, and object B on a separate layer

  • I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where

    I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where I do not have a Wi-Fi connections.  I need to be able access files without going to acrobat.com.  Help!!!@

    Post the PDF files to a web site. The browse to them in Safari on the iPad.  When you Open the files specify the Open to occur in Adobe Reader.  Then you can have/Save them in your Documents folder on the iPad.   An iPad has limited access to files otherwise.

  • I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    The iphone is not  storage/backup device.
    The sync is one way - computer to iphone.
    The only exception is itunes purchases.  File>Devices>Transfer Purchases
    You should copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • New document alert: How to get PDF documents into Adobe Reader for iOS

    Opening PDF Files in Reader for iOS (iPhone and iPad) has been very helpful to many users of Adobe Reader for iOS.  However, Apple has drastically changed the user interface in iOS 7, which made the original document obsolete. 
    According to Apple Developer Support's App Store Distribution page, 89% of devices connected to the App Store are using iOS 7 during a 7‑day period ending June 29, 2014.
    Because of the exceptionally high iOS 7 adoption rate, Adobe Reader for iOS version 11.3 now supports iOS 7 only.
    Here are the new How-To documents for iOS 7.
    How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)
    (It had to be split into two separate documents because each contains way too many screenshots.)
    Hope these documents are as helpful as the original one.
    Please let us know if you have any feedback or suggestions on the topics for other help documents/tutorials.

    Dennis (or any Adobe rep),
    Any updates to the OP's question? I'm with a large government agency, and we're moving away from GoodReader for reasons I can't go into here, and the ability to add user-defined bookmarks within the app is a mandatory feature for the document reader we select. I have the latest version of Adobe Reader (11.6.1) installed on my government iPad, and the ability to add user-defined bookmarks still seems to be missing. Does Adobe have any plans to add this feature, or is it already present and I'm simply overlooking it?
    Thanks,
    Cam

  • How to get quicktime movie  into FCP X?

    how to get quicktime movie  into FCP X?

    What exactly are you trying to do that using the import files function won't accomplish?
    Russ

  • How to import files with static variables into a block with methods?

    i have a problem. is it possible to import files with static variables into tags like
    <%!
    //here i want to import a file named settings.inc
    //whitch is used to set jdbc constants like url,driver,...
    private void method() {
    private void method2() {
    %>
    <%@include file="xy"%>//dosn�t work above
    //only in <%%>tag

    This should be done using either the Properties class or ResourceBundle. Ex.
    <%
    ResourceBundle resBun = ResourceBundle.getBundle(String resource);
    String username = resBun.getString("username");
    String password = resBun.getString("password");
    // etc
    %>

  • How to call one  JSFF into another JSFF

    Hi,
    I am very new to ADf. Could you please tell me how to call one JSFF inside another JSFF. We have a common pop-up written in one JSFF. Is there any best approach to get this pop-up into other JSFF.
    Thanks in Advance.
    Regards
    Narasimha

    If you want to resue the jsff code, make use of bounded task flow with page fragment and then use it as a region.
    For more details you can refer: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm
    One more:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html

  • How to get the value from another report Customizes Form

    Dear all,
    I create a report such as
    select * from mytable.table1
    where field1 = :bind_variable
    I create a menu to run this Customized Form and user have to select the bind_variable values. So I have another report created which also want this bind_variable as it WHERE Clause. But I don't want my user to key the same bind variable twice. They can just same the Customized Form and run for both report.
    Could anybody know how to get the bind_variable on 1st report and used by the 2nd report.
    Thank you very much.
    Best Rgds,
    SL Voon

    Hi,
    are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
    regards
    Cornelia

  • How to pass a variable into a cfc?

    prior to calling the cfinvoke, I have coding that determins a
    variable "X"
    I need to pass X into a cfc so it can complete the query held
    there.
    So I tried
    <cfinvoke component="A"
    method="AList"
    returnvariable="AResults">
    <cfinvokeargument name="x" value="#X#"
    /></cfinvoke>
    correct so far?
    Now over on the cfc page is where I'm getting stuck
    Inside my cffunction I'm adding <cfargument name="X" />
    But how do I get the value in?

    I don't quite understand your question. Can you rephrase?
    But before all that, bear in mind that one doesn't pass a
    variables into a
    *CFC*, one passes it into a function within the CFC. And as
    with all
    functions, one passes values into the function by passing it
    as an
    argument. But - of course - the function has to be coded to
    expect the
    argument.
    Your own sample code demonstrates this in action:
    <cfinvokeargument name="abbrCode"
    value="#companyAbbrCode#" />
    (NB: lose the trailing slash: this is CFML, not XML).
    So you know how to do that.
    Hence me not quite understanding what you're actually asking.
    Adam

  • How do you superimpose someone into another photo quickly?

    In the video of Photoshop Element 11, the man draws a green swiggly over his daughter on the beach and adds her into another photo a couple of times, so he ends up with her on the beach 3 times next to each other. I really want to know how to do that in a quicker way than with the lasso tool.

    Try http://www.youtube.com/watch?v=KuPI4hqmDDQ
    Thanks
    Andaleeb

  • How to add one DC into Another

    Hi
         I have created one DC ,now I want to use this DC into another.
         My application is like:
         I have one i/p field and beside it one button which calls another DC.So how     to   do this?
    Thanks
    Prajakta

    Hi,
    This link will solve your problem.
    WebDynpro DC -create and use
    Correct steps to use Java class in WD Java DC from another WD Java DC
    For any queries feel free to ask.
    Regards,
    Praveen

  • How to copy exitsitng extracter into another new extracter?

    Hello,
    Please some one can tel me how to copy the existing  extracter into another new extracter.
    I have requirment as below
    Currect me if i am wrong ,need to enhance the existing extracter and add some new fields,and need to include some masterdata filds also to it.
    For master data i am going to do write routines at Transfermation so that no need to include in my exter for those filds to extracter.
    Please some one guide me in this scenario.
    Chrs

    Hi,
    you do not have to copy the extractor, you can enhance it with fields and fill them via enhancement coding --> rsa6.
    If you want to copy it, you need to check what kind of extractor you have. Is it a function module or just a table extractor.
    for fm: copy the function module via se37 and copy the extract structure via se11. Add your enhancements in the copied structures and coding. Create a new datasource with rso2.
    for table extractor: create a view adding the additionally needed fields. create a new ds with rso2. Surely you need to add some coding in the relevant enhancement.
    regards
    Siggi

Maybe you are looking for

  • How can i find my ipod without using the app

    i lost my ipod and i dont know where it is. i dont own a iphone to use the finding app. what can i do?

  • Photoshop CC very slow to open after Win 8.1 upgrade

    Hi guys.  I was wondering can you help me. I have tried extensive google searches with no real conclusive answer. I recently upgraded from Win 8 to 8.1. Since the upgrade Photoshop CC is very slow to open. It can take 1-2 minutes to boot up fully. Li

  • Safari Not Staying Default Browser

    No matter how many times I reset my default browser back to Safari, it always changes back to Firefox. This happens if Firefox is opened, or if I restart my computer. Either way, it's very annoying and highly inconvinent. I read some guy back in 2008

  • Display favicon in Apex?

    Is there any way to display my own favicon.ico in Apex's URL bar? If yes, how? Thanx

  • Blur Customer Names

    I have been asked to create a video of a web application I have developed to demonstrate it's capabilities. This is something new to me, I have never used any of the video editing capabilities of CS4 Master Colection. I created the video using ZD Sof