I cant add two byte variable

I want to add two byte variable and store result in a byte variable but there is an error. Pls clarify me.

And the error is? The first error is
A.java:1: 'class' or 'interface' expected
Class AAnd since I believe that that is caused by the OP hurriedly retyping code rather than pasting his real code I am not wanting to waste time guessing what the real problem is.

Similar Messages

  • BW 2.0B, info package selection, cant use two system variable for 0CALMONTH

    Hi Experts,
    I am working on BW 2.0B in APO system. There is an info package for which I want to supply two selection value for 0CALMONTH as equal to current month and last month. System variables 0CMONTH (for current month) and 0CMLMON (for last month) are available but I am not able to use them both.
    If I change the variable in one selection, it automatically changes the other one too, making both the selection as same variable.
    Can you suggest any solution/idea?
    Regards,
    Purvang

    any ideas to achieve this?

  • How can i add two values under the same property?

    Hi all,
    How can i add two values under the same property name in a
    prop list? For example:
    [question1: "item1","item2", question2: "item3","item4"]
    To be more precise, i am creating a property list and I want
    whenever a two values have the same property name to be added int
    he list under the same property. For example:
    gMyList.AddProp (#""&question&"" & x,
    member("input").text)
    question is a variable that is updated fromt he user's input.
    Now, whenever somethign like this happens:
    question = "question1"
    member("input").text = "five"
    question = "question1"
    member("input").text = "six"
    I want to output list to be:
    [question1: "five","six"] and so on
    Any ideas?

    Maybe you could make each property a list (so you have a
    property list full
    of lists), and add multiple values to the list held in a
    particular
    property?
    Cheers
    Richard Smith

  • Select One Choice attribute' LoV based on two bind variables, best practice

    Hello there,
    I am in the process of learning the ADF 11g, I have following requirement,
    A page must contain a list of school names which is needed to be fetched based on two parameters, the parameters are student information been inserted in the previous page.
    I have defined a read only view "SchoolNamesViewRO", it's query depends on two bind variables :stdDegree and stdCateg.
    added that RO View as a view accessor to the entity to which the name attribute belongs, and then add LoV for the name attribute using the ReadOnly view,
    added the name attribute as Select One Choice to page2,
    and now I need to pass the values of the bind variables of the ReadOnly view,
    the information needed to be passed as the bind variables is inserted in the previous page, I could have the data as bindings attribute values in the page2 definition
    I have implemented the next two appraoches but both resulted in an empty list :
    * added ExecuteWithParams Action to the bindings of the page and then defined an Invoke Action (set refresh condition) in the executable s, set the default values of the parameters to be the attributes values' input value,
    in the trace I code see that the binding fetches correct values as supposed , but the select list appears empty, does the this execution for the query considered to be connected to the list ?
    * added a method to the ReadOnly view Imp java class to set the bind variables, then I define it as a MethodAction in the bindings , and then create an Invoke action for it , also the select is empty,
    if the query been executed with the passed variables, then why the list is empty? is it reading data from another place than the page!
    and what is the best practice to implement that requirement?
    would the solution be : by setting the default value of the bind variables to be some kind of Expression!
    please notice that query execution had the bound variables ( I see in the trace) are set to the correct values.
    would you give some hints or redirect me to a useful link,
    Thanks in advance
    Regards,

    please give me any example using backing bean .for example
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:selectOneChoice label="Label 1" id="soc1" binding="#{Af.l1}"
    autoSubmit="true">
    <af:selectItem label="A" value="1" id="si1"/>
    <af:selectItem label="B" value="2" id="si2"/>
    </af:selectOneChoice>
    <af:selectOneChoice label="Label 2" id="soc2" disabled="#{Af.l1=='2'}"
    partialTriggers="soc1">
    <af:selectItem label="C" value="3" id="si3"/>
    <af:selectItem label="D" value="4" id="si4"/>
    </af:selectOneChoice>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    package a;
    import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
    public class A {
    private RichSelectOneChoice l1;
    public A() {
    public void setL1(RichSelectOneChoice l1) {
    this.l1 = l1;
    public RichSelectOneChoice getL1() {
    return l1;
    is there any mistake

  • How to cram two bytes into a short?

    Hi all,
    I have some byte[] data that I am receiving, and I need to put two bytes into one short (or int, or whatever), as the byte[] will form a two bytes-per-pixel image. I've been working with 8-bit data (this is 12-bits, NOT packed), which is much easier to manipulate.
    I currently have this method to convert a byte[] of 8-bit data into a short (I do this because Java does not support signed types and I need that 8th bit):
    private short[] convertBytesToShorts(byte[] data) {
         short[] convertedData = new short[data.length];
         for (int i = 0; i < data.length; i++) {
              convertedData[i] = (short)((short)data[i] & 0xff);
         return convertedData;
    }Is there a way to modify this to place two bytes into one short? Is it possible to just AND two bytes with 0xff and add them together to create one short? Surely it cannot be that simple. Also, remember that I must treat the values as unsigned.
    Furthermore, the two bytes look like this:
    | xxxx xxxx | xxxx 0000 |So the last four bits in the second byte are 0s.
    Any advice is appreciated.
    Message was edited by:
    Djaunl

    I've been working with 8-bit
    data (this is 12-bits, NOT packed), Obviously that is contradictory.
    I currently have this method to convert a byte[] of
    8-bit data into a short (I do this because Java does
    not support signed types and I need that 8th bit):
    Yes it does. The fact that it displays a byte as and integer and the conversion in that process produces a negative display value has nothing at all to do with the bits.
    Is there a way to modify this to place two bytes into
    one short? short s = (short)(((b1 << 8) & 0x0ff) | (b2 & 0x0ff))
    Of course you still have to deal with getting the order correct.
    (You can probably get rid of that first mask but you would need to test that.)

  • Cant add P!nk to a playlist

    I've noticed that I cant add anything from the P!nk artist to a playlist. Is it something to do with the '!' character in the title perhaps...??
    Please dont judge me by by music library contents - my niece adds music to my device!
    BTW, I think IOS 7 is a great piece work, well done Apple ahead of the game as usual.

    Hi Sudharshan,
    I'm not using any special characters in this example, but would expect the naming convention you suggest to also work (_abs_asynch). I get the problem with any abstract message. I set up a prototype software component and created dependencies to the SAP delivered Airline examples but got the same problems. I'm confident the problem doesn't lie in the interface definition or it's naming.
    We are applying OSS note 883500, which by monitoring through Web Start seems to be a proposed fixed for the missing Interface Variable look up screen. I'll post more details when the patch has been applied.
    Regards
    Antony

  • I cant add any new posts or change anything in iCal

    I started to use my iCal a little while ago. First everything work just fine and I added some events and posts in my calender. After a day or two I relaesed that I could not add anything to my iCal.
    I can see how a new post is added to the calender but after closing down and reopening again the post is gone. It is not even possible to take away anaything old.It will appere after reopening iCal again. It is like it is locked.
    What to do????
    Message was edited by: Smerk
    Message was edited by: Smerk

    im having the same problem and i dont know what to do. i cant add anything at all, i cant double click or press the add event button. and when i delete something it goes away and then comes back after i reopen ical. HELP! i use this for my business and i need to fix this. THANKS!

  • Cant add mpeg 4 to libary

    mpeg video's play in iTunes, after conversion to mpeg 4, cant add to libary

    i 've converted a dvd i have into a MPEG 4. Format and ive added it to my i-Tunes libary. ive tried updating it into my ipod but a message from i-tunes saying "some songs such as "Dvd Movie" cannot be played on the iPOD" ive had no problem putting videos on to my ipod till this one.
    Problems such as you describe usually fall into two distinct categories. The first is the use of inappropriate settings and the second is a matter of media content. Since this is the first time you've encountered such problems, I would think your current problem stems from the latter.
    No one setting fits all situations. The brightnes of a scene, it's complexity of detail, and/or amount of rapid action can all serve to push the instantaneous data rate of your video beyond your iPod's playback capabilities (for which iTunes error traps before sync). In most cases, simply modifying your conversion settings is sufficient to turn an unplayable file into a playable one. In other instance it may be necessary to modify brightness, contrast, and/or saturation levels with or without modification of video data rate settings. Just remember that achieving maximum returns on your compression techniques is as much an art as it is a science.

  • Is there a way to add two windows in the same window?

    is there a way to add two windows in the same window?

    what do you mean by your first use of the word "window"? do you mean a visible frame? a section of the gui that the user doesnt see?
    or perhaps you mean you want to add multiple tabs to a single window, so that switching between tabs shows different windows?

  • Add Two Column in report ,Download and Delete

    Hi Friends,
    i have one item File Browser to use browse :P1_file_browser and i have create a Report
    My Table Is
    CREATE TABLE  "ARM_DOC_CER"
       (     "ID" NUMBER,
         "NAME" VARCHAR2(500),
         "MIME_TYPE" CLOB,
         "BLOB_CONTENT" BLOB,
         "SUBJECT" VARCHAR2(500)
    i jus want to add two column in my report
    1--Download
    2--Delete
    When i click on download then download file and when i click on delete then delete corresponding file.
    How can i do this.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    You can use concat function or also '||' to combine two columns.
    1. with concat-
    concat("D4 Product"."P01 Product","D4 Product"."P02 Product Type")
    2. With '||' operator
    "D4 Product"."P01 Product" || '-'||"D4 Product"."P02 Product Type"
    (Remove '-' if not required)
    This should resolve. Hope this helps
    Regards
    MuRam

  • I updated my ipod 4 to ios5 and now my plus sign on the contacts and calendar are gone and i cant add events or new people what do i do??

    i updated my ipod4 to ios5 and now my plus sign on the contacts and calendar are gone!!
    and now i cant add events or new people directly to my ipod..
    how can i fix this??

    Try looking at the similar posts on the right side of this page under the heading "More Like This". The ones with the green checkmark were solved.

  • I cant get two monitors to work on one pc.

    Does anyone know why i cant get two monitors working on one pc?
    I have a HP P6 2000 UKM computer, running windows 7 and it has a DVI D socket as well as the standard VGA (which i am using for my primary monitor)  I have got the right DVI  to VGA adaptor and have followed various instructions to set up duel disply but every tutorial i have seen says use the multiple display option,  but the option dropdown box is not there!
    Iv'e tried two different monitors but he same problem. If my graphics card does not suport 2 monitors then why is there a DVI D socket?
    Have never had this problem in the past!
    Please help.
    Nobby

    Hi,
    Please post the exact HP product number for your PC.
    VGA is analog and DVI-D is digital.  If you have two monitors then one of them needs to support a digital video signal if you want to use two monitors
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • How to add two different page numbers in a single page

    How to add two different page numbers in a single page? One is for page number of the whole article, the other one is for page number for each chapter in the article.

    It's quite complicated, see
    Two Page Numbering Schemes in the Same Document.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • How to add two different database connections on Model

    Hi,
    In my application, I need to create View Objects on different databases. So I need to add two different database connections on the Model.
    But it seems like Model can be connected to only one database. I tried adding another project to add the second db connection. But after I created a read-only View Object in the second project, it didn't generate corresponding data control in the Data Controls panel.
    Could anyone help me on this?
    Thanks!

    Do you mean adding the second project folder in ViewController->Project Properties->Libraries and Classpath?Yes, either that or: ViewController -> Project Properties -> Dependencies
    And I didn't see the first Model project in the ViewController classpath. Otherwise it wouldn't work. The first model project IS in 'classpath'. Here's how:
    ViewController -> Project Properties -> Dependencies
    I tried this and recreated the View Object. Still didn't generate the datacontrol. No idea why you had to recreate the VO.
    Is your VO in an application module inside the SECOND project?
    After you are sure that everything is in the ViewController's classpath, just try restarting JDeveloper.
    This is very basic. has to work.

  • HT1473 Help I just moved my music files to a external hard drive and am using the new crappy version ( i know my opinion) of itunes and cant add the files to my libray it gives me the add file to library option but not the add folder to library option wha

    Help I just moved my music files to a external hard drive and am using the new crappy version ( i know my opinion) of itunes and cant add the files to my libray it gives me the add file to library option but not the add folder to library option what am i doing wrong?

    In iTunes 11 uncheck the preferences setting in in the iTunes Preferences panel "Advanced > Copy Files to iTunes Media folder when adding to Library"

Maybe you are looking for

  • Is there a plug-in for cropping movies?

    Is there a plug-in for cropping movies? I asked this question a few months ago, and someone suggested a plug-in that turns everything outside a cropping window into a background color. I would like to be able to do true cropping. I hope it's not nece

  • Miix 8 touchscreen issue

    Typing fast on the keyboard frequently results in strange characters, the kind that are supposed to require a press and hold to select. This issue is discussed in the following review and show around 6:10 in the video. http://www.techspot.com/review/

  • Query  stucking somewhere...

    Hi, version:10g (Windows) software using : toad SELECT /*+ parallel (r,4) */ SERVED_MSISDN,transaction_id,event_date,transaction_datetime,transaction_amt,file_name,bal_before_transaction,bal_after_transaction FROM ABC_ETL.XYZ_123 PARTITION(DATE_20130

  • I have tried everything. How do I get the security questions reset ?

    How do I reset my security questions? Nothing works and I have read and tried everything.

  • After FCX export, video of stills are choppy on YouTube

    I have a series of videos that I have uploaded to YouTube, they are made up of entirely high-resolution images (which have been shrunk a bit in Photoshop). The images are mostly panned throughout the video, and appear a bit choppy at times on YouTube