Help! java novice, i need to convert boolean to char

I have multiple checkboxes. Depending on what checkbox is selected, I need to convert that true boolean data to char data like 'L' or 'B'.
If anyone can, please help. I would greatly appreciate it. Thanks.

I'm not quite sure what you mean - boolean has only 2 states, true and false. A char can be any character. How about:
if (someBooleanVar == true){
someCharVar = "L";
}else{
someCharVar = "B";
Again, I don't understand what you're doing, but it seems that you need to test the values of the checkboxes, and based on the values, you need to assign values to some char variables. Don't waste you're time trying to converts booleans to chars - it ain't gonna happen.

Similar Messages

  • I'm trying to view my movies through itunes and apple TV but only a few appear in itunes when i add to library, they include .avi and mp4 files.  Whys have only a few copied and rest wont add to my library, can someone help? Do I need to convert them?

    I'm trying to view my movies through itunes and apple TV but only a few appear in itunes when i add to library, they include .avi and mp4 files.  Whys have only a few copied and rest wont add to my library, can someone help? Do I need to convert them?

    What are the file extensions of the movies that won't import to iTunes
    What video content works in iTunes
    What video content works with iTunes and mobile devices?
    iTunes:
    Video content purchased from the iTunes Store.
    QuickTime and MPEG-4 movie files that end in ".mov", ".m4v", or ".mp4" and are playable in QuickTime Player.
    Video podcasts.
    iTunes Digital Copies.
    iTunes Store Movie Rentals (Requires iTunes 9 or later).

  • HELP,Java Novice,1.5.04 and viewing videos

    Hi,
    I have got Win 2000/IE6/Java 1.5 installed on several PC's. When trying to view online tutorials which contain video they do not play properly. I receive a blank screen without video showing. When I change the network settings on Java Control Panel from 'Use browser settings' to use direct connection the video plays fine. I have tried 3 PC's, one with XP with this setting and it works fine. However then I changed this setting on 2 other PC's which have WinXP/IE6 but the video shows up but plays really slowly if at all. I've no idea what else I can try to get them to play properly.
    Any suggestions appreciated.

    You obviously have proxy problems in the computer configurations. This documentation may help:
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/proxie_config.html

  • Converting a 6 char string to date

    Please help..
    How can I convert a 6 char date (ddmmyy) to date format
    that can be passed as input to function module?

    Hi,
    Try FM,
    CONVERT_DATE_TO_INTERNAL
    Run this sample code,
    DATA:
      my_date(6) TYPE c VALUE '300708',
      w_date     TYPE sy-datum.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
        date_external                  = my_date
    *   ACCEPT_INITIAL_DATE            = ACCEPT_INITIAL_DATE
    IMPORTING
       date_internal                  = w_date
    EXCEPTIONS
       date_external_is_invalid       = 1.
    WRITE: w_date.
    Regards
    Adil

  • Converting int to char

    Hi!..
    I have a problem!...
    I need to convert integers to chars, but i`m using char(int)....
    So, only accept until ascii code 128..
    Please, What can I do?
    This is my code:
    Thanks!
    public Convert() {
    public static void main(String[] args) {
    Convert convert1 = new Convert();
    System.out.print(f_Transforma("ABCD"));
    public static String f_Transforma(String Password)
    int IntStrLong=Password.length();
    String StrResultado=new String();
    while (IntStrLong >=1)
    int tmpchar=(int)Password.charAt(IntStrLong-1); //valor ascii
    tmpchar=256-tmpchar+IntStrLong;
    String aChar = new Character((char)tmpchar).toString(); //ASCII code to String
    StrResultado=StrResultado+aChar;
    IntStrLong-=1;
    return (StrResultado);
    }

    I did what you told me and nothing happened...
    int tmpchar=(int)Password.charAt(IntStrLong-1); //valor ascii
    tmpchar=256-tmpchar+IntStrLong;
    tmpchar=tmpchar>>8;
    String aChar = new Character((char)tmpchar).toString(); //ASCII code to String

  • Need to convert an image to .jpeg using Java !

    Hello,
    i am working in images now. i need to convert any image in the form of .jpeg using Java. in other words, i need to store an image in the form of .jpeg format. can any of u help me ! thanks in advance.
    - Krishna

    There's also jimi, at http://java.sun.com/products/jimi/
    You can do something like:
    image = new BufferedImage (width, height, BufferedImage.TYPE_INT_RGB);
    // create your image
    String path = "/path/image.jpg";
    Jimi.putImage(image, path);
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need to convert a string to boolean

    i have string true, false, i need to convert them to boolean, is it good to use String.equals(true/false) or is it good to use Boolean.valueOf(true/false)
    Regards,
    Surya

    See http://forum.java.sun.com/thread.jsp?forum=54&thread=455788&tstart=0&trange=30.
    Remember, '=' is assignment, '==' is equals...

  • Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I ha e some educational videos that belong in "Podcasts." Help?

    Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I have some educational videos that belong in "Podcasts." Help?

    Select/highlight the ones that you want to change in your iTunes library, do Get-Info (control-I) and change their Media Kind on their Options tab to 'Music Video' - and then similarly for the podcasts.

  • Explicit cast needed to convert java.* to to oracle.*

    Hello,
    I am trying to compile and run the following JSP but keep getting the "Incompatible type for = Explicit cast needed ..." error. The JSP and oracle procedure code are as follows:
    <%@ page language="java" import="java.sql.*" %>
    <%@ page import="oracle.jdbc.driver.*" %>
    <HTML>
    <HEAD>
    <TITLE>
    SimpleQuery JSP
    </TITLE>
    </HEAD>
    <BODY BGCOLOR=EOFFFO>
    <TABLE BORDER=1 BGCOLOR="C0C0C0">
    <TH BGCOLOR="white"> <I>Node ID</I> </TH>
    <%
         Connection con = null;
    OracleCallableStatement cstmt= null;
         ResultSet rs = null;
    try {
              String SYSTEM_DB_DRIVER =
    "oracle.jdbc.driver.OracleDriver";
    String SYSTEM_DB_URL =
    "jdbc:oracle:thin:@myserver.com:1521:";
    String SYSTEM_DB_FILE = "CONN_STRING";
    String SYSTEM_DB_USER = "UNAME";
    String SYSTEM_DB_PASSWORD = "PASSWD";
              Class.forName(SYSTEM_DB_DRIVER);
    con = DriverManager.getConnection(SYSTEM_DB_URL +
    SYSTEM_DB_FILE, SYSTEM_DB_USER, SYSTEM_DB_PASSWORD);
              cstmt = con.prepareCall("call eaicl_p_requirement.open_rule_dtl(?,?)");
              cstmt.registerOutParameter(1, OracleTypes.CURSOR);
    <<I think I have to pass the p_product_id_in here but not sure how>>
              cstmt.execute();
              rs = ((OracleCallableStatement)cstmt).getCursor(1);
              while(rs.next())
              {%>
         <TR>
         <TD ALIGN=CENTER> <%= rs.getString(1) %> </TD>
         <TD ALIGN=CENTER> <%= rs.getInt(2) %> </TD>
    </TR>
              <%}
                   rs.close();
    cstmt.close();
    con.close();
    catch(Exception e)
    %>
    </TABLE>
    </BODY>
    </HTML>
    The Oracle PL/SQL package.procedure it is calling is:
         PROCEDURE open_rules_dtl (
              prc_rules_dtl_out          OUT     rc_fetch_rule_dtl,
              p_product_id_in          IN          NUMBER )
         IS
              vrc_rules_dtl               rc_fetch_rule_dtl;
         BEGIN
              OPEN vrc_rules_dtl FOR
                   SELECT
                        r.rule_id,
                        r.rule_name,
                        r.rule_objective,
                        r.rule_description,
                        r.clearance_requirement,
                        r.rule_type
                   FROM
                        eaicl_rule r
                   WHERE
                        r.is_old = 'N' AND
                        r.product_id = CHR( p_product_id_in )
                   ORDER BY
                        r.rule_name
              prc_rules_dtl_out := vrc_rules_dtl;
    END open_rules_dtl;
    I keep getting the following error on the webserver:
    [05/Dec/2001:16:56:02] info ( 632): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\iPlanet\Server4\https-wacc\config\..\ClassCache\_jsps\_ss_test5_jsp.java:84: Incompatible type for =. Explicit cast needed to convert java.sql.CallableStatement to oracle.jdbc.driver.OracleCallableStatement.
              cstmt = con.prepareCall("call eaicl_p_requirement.open_rule_dtl(?,?)");
              ^
    I'm not sure how to fix it. I also need to pass the p_product_id parameter to the procedure.
    Hope someone can point me in the right direction. Thanks.

    Here's how you do an explicit cast:cstmt = (OracleCallableStatement)con.prepareCall("call eaicl_p_requirement.open_rule_dtl(?,?)");

  • To open "Java Preferences," you need to install a Java runtime, but you are not connected to the Internet. I have tried links that people have put on other discussions but all i get is a black screen please help!!

    To open “Java Preferences,” you need to install a Java runtime, but you are not connected to the Internet. I have tried links that people have put on other discussions but all i get is a black screen please help!!

    Try this link, warning, it's straight to download mode:
    http://support.apple.com/downloads/DL1421/en_US/JavaForMacOSX10.7.dmg

  • Need help with an automator workflow to convert AAC files to MP3

    Hi
    I am trying to work out a way to automatically convert voice memos which I dictate on my iPhone to MP3 files when they are added to my iTunes library during a sync. Then I need the converted files to be in a specific folder so that they will trigger an auto-transcription program that I have running.
    From my limited knowledge of automating processes on my Mac it would seem that I need to design a workflow or a folder action in Automator. Probably a folder action would be best, as I could attach it to the 'Voice Memos' folder in my iTunes Music Folder. The converted MP3 files would be saved in the same folder and would then be recognised by the transcription program. I have tried to design a workflow/folder action using Doug's iTunes automator actions as follows, but it is not working as I would like. The workflow is as follows:
    Folder Action/Get Folder Contents/Choose encoder (MP3)/Convert Tracks/Choose encoder (apple lossless)/Restore Encoder.
    The folder action is triggered when I add AAC files to the folder I have attached the action to, but then I get an error message stating that 'no tracks have been sent to this action'.
    i would be grateful for any help to get this working using the automator method or another method
    thanks
    nick

    Start with http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html

  • HT3633 I have an error message that reads: java.lang.noclassdefFounder - need to fix can anyone help?

    I have an error message that reads: java.lang.noclassdefFounder - need to fix can anyone help?

    That's a bug in whatever Java program you're running.
    That's not an error specific to OS X.
    (There's usually a whole lot more text dumped by Java, too.)
    Check with whoever wrote or is supporting the package you're working with.

  • Cant convert boolean to java.lang.Boolean - HUH?

    I'm fairly new to Java, but I'm pretty sure this should work.
    Can someone tell me why I'm getting these compiler errors:
    wehServlet.java:72: Incompatible type for if. Can't convert java.lang.Boolean to boolean.
    if (checkoutSpecificFile(req,res,busId,tempDir)) {
    ^
    wehServlet.java:123: Incompatible type for return. Can't convert boolean to java.lang.Boolean.
    return true;
    Here's the basic code:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    public class wehServlet extends HttpServlet {
    private void someThing (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    if(tryThis()) {
    <do something>
    } else {
    <do something else>
    private Boolean tryThis() {
    return false;
    Why can't I do this?
    How do I fix it?
    I tried
    if(tryThis().booleanValue())....
    and I get this compile error:
    Incompatible type for return. Can't convert boolean to java.lang.Boolean
    Now what do I do?

    There's a lot of confusion caused by these "Wrapper" objects, not just Boolean but Integer, Long etc.
    The basic ("primitive") types are lower case names, boolean, int, long etc..
    The related items with capital letters are "wrapper" objects. The are used in a context where you basically want to store a single value but must do so as an Object, for example in aggregate objects like Map or List.
    You should avoid these unless there's a specific reason to use them.
    You can convert between boolean and Boolean, int and Integer etc. but it has to be done explicitly. As far as Java is concerned they're entirely different kind of thing. To java the Boolean class is just another kind of Object, it has no special syntactic significance.
    boolean b;
    Boolean bo;
    b = bo.booleanValue();  // covert from Boolean object to boolean primitive
    bo = new Boolean(b); // convert primitive to Object
    if(bo.booleanValue()) {  // test Boolean objed

  • I have a video in .avi format, what format do I need to convert to, to play on my DVD recorder, please can anyone help?

    I have a video in .avi format, but what format do I need to convert to, to play on my DVD recorder, please can anyone help?

    tylerfrombalantine's post had zero grammar in it, so it's not clear what he's saying. I bought a DVD recorder and the instruction manual lists all the disc formats it can play. Check your DVD recorder manual to see what works with it, then burn a DVD that matches. It should be fine to burn just a standard DVD, since of course any DVD player can play that.
    Depending on the program you use, you may not have to convert anything manually. The program might convert your current video format to DVD on fly as it burns the disc.

  • I am receiving excel files, which I need to convert with my macbook pro...I did this with export, but the file I got didnt show graphs as it should...can you help...do I need to buy excel for Apple computer, or is there any easier way of dealing with it..

    I am receiving excel files, which I need to convert with my macbook pro...I did this with export, but the file I got didnt show graphs as it should...can you help...do I need to buy excel for Apple computer, or is there any easier way of dealing with it..does App  "Numbers" help here?

    Numbers should be able to read Excel files without any problems.    If Numbers does not read the graphics properly then you can try Excel Online. https://office.live.com/start/Excel.aspx

Maybe you are looking for

  • SAP Netweaver Architect Document and its place in SDLC

    Hi All, I am looking forward to look at a sample SAP Netweaver Architect Documument or a Template and want to understand the scope and all details included in the perview of this document. I understand that Tech Architect Document will be prepared in

  • About SAP-Press Books

    Can you give me an opinion of the following books of SAP-Press? I would like to buy them. The Official ABAP Reference $149.95 - Now shipping! SAP Smart Forms $59.95 - Temporarily out of stock - shipping resumes the week of November 21st, 2005. Enhanc

  • Reader DC nags when opening documents

    You see at least two: A banner at the top declaring that "Mobile Link is Off - Easily open all your files..." and another message stating "Store and share files in Document Cloud - Learn More." I have "Show me messages when I launch" unchecked and "D

  • Error occurred while saving SAP Lumira 1.15.1 document

    Hi All, I got error while saving document in SAP Lumira 1.15.1(Error Desc. : you do not have permission to save the document to its current location). and also occurred while sharing on cloud. Below fig.1 shows while saving and fig 2.shows error whil

  • Compliment to Verizon and it's employees

    Greeting; With all the things we see and do, with many companies and people we deal with, I just wished to relay my thanks to all involved in my particular case. For almost 2 years I've been having issues with a Droid X2. After a total of 3 different