How to create  records in java

hi,
i would like to know the way to create a record in java(arrays of object with various data type). i never used this site before so please tell me how and when will i get the result for this and how r u going to contact me.
i will be glad if you help me as soon as possible.
please email me ..........
thanks .
from
harold

One way is to make a class that holds all the data you want.
A little example:
public class Record {
  private String name;
  private Integer value;
  public Record(String name, Integer value) {
    this.name = name;
    this.value = value;
  public String getName() { return name; }
  public Integer getValue() { return value; }
}This is probably the best way to do it.
You can also have data of different object types in an object array if thats what you want. But I think that is messy.
Object[] array = new Object[2];
array[0] = "name";
array[1] = new Integer(5);

Similar Messages

  • How to created roles in JAVA environment

    Can anybody tell me how to create Roles and profiles in JAVA only environment?
    Thanks in advance.

    Hai,
    Please check the below link, will help....
    http://help.sap.com/saphelp_nw04s/helpdata/en/5b/5d2706ebc04e4d98036f2e1dcfd47d/frameset.htm
    Regards,
    Yoganand.V

  • How to create reports in java or j2ee???

    I want to know how can we create reports in java or j2ee like we use crystal report in vb or .net.do we use jsp or servlet to generate the reports or is there any other tool to do the same?Members,please,do help me.

    Well, you can use JasperResports (http://www.jasperforge.org/) and Eclipse Birt (http://www.eclipse.org/birt/phoenix/)

  • How to create reports for java programs?

    Hi,
    I have planned to do a project using java,that will help to create reports for java programs. To create reports for java programs i used two options.
    1)Crystal reports
    2)Write the code to produce reports for each java programs
    The second one little cumbersome.SO i planned to develop a software that is compatible for creating java reports.
    I would like to know how i will do the project?Can you help me to made it a successful project.Hope you can help me.
    Expecting your reply
    PreethiRenjith

    Uggg... Crystal reports...
    I would personally write a generic report generator, It would probably be easier than fighting w/
    crystal reports (CR is popular, but painful :) )
    Anyhow, I've written report generators for many different applications. It is one of the simplest projects you
    can take on, and the results make you feel special --
    If your need nicely formated, portable, printable reports, you could have your report generator make PDF files (the format is open, and VERY simple, plus people like pdf files) you can get the pdf spec from adobe or from wotsit.org (the famous wotsit file format archive).
    enjoy!

  • How to create help for java application

    Thanks very much for any suggestions how to create help file for java application

    how to set up the environment variable JAVAHELP_HOME

  • How to create command line java client

    I have a java servlet FileClient.java and am invoking it thru POST method from the html file. How can I create command line java client so that I can execute this class file from windows command prompt.
    e.g. java FileClient <argument>
    TIA

    > .. there's also a "won't work".
    I could post a sample...I know that you can instantiate and call aservlet,
    or even write your own servlet container - butit's
    still a local instance. He can't invoke his remote
    servlet by calling its class on the client like he
    suggested.HttpURLConnection in main.Only if his Servlet has a main method. Which wouldn't really make it a servlet anymore.
    OP said he wants to invoke it from command-line using
    java -cp . TheServletClass
    He said he has a servlet called FileClient. And he can't invoke a servlet directly that way, without building a wrapper that starts it, making it more than a servlet, and it definitely won't execute on the server. That's my whole point. I never wanted to say you can't write a command-line program that invokes a servlet on a remote server. I do it myself after all.
    I guess I should have expressed myself more clearly.

  • How to create Webservice using java

    Hi Experts,
          I am very new to Visual composer, can any one of you suggest how to create a webservice using java so that i can use that webservice in Visual Composer application.If it is possible please give me detailed description about it.
    Regards,
    Prasanna.

    Hi Prasanna,
    See if my article is of any use to you:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10">How to Create a Web Service using an Enterprise JavaBean</a>
    For creating Web Services, you won't need to do the MS SQL Part explained in my doc. You can just concentrate on the part where i explain how to create a Web Service using an EJB.
    Bye
    Ankur

  • How do create records for packing instructions

    Hello,
    Can anyone tell me where and how to create condition records for packing instructions.
    This is required for automatic packing
    Regards
    Tapan

    Use transaction POP1 to create PAcking insturction.
    Reward the points

  • How to create table in java

    i need help on this topic
    how to create table in java

    lucky786 wrote:
    help urgentlyI am too late?

  • Challenge: How to create an BMP Java Bean from a DBF Database??

    Hello guys....
    This is my challenge and looking for some aim:
    I was asked to create an application that must read from an existing DBF Database of products (That is already used by an administrative system) an build a Price List in Real Time. The program must be accesible through Intranet using a web browser.
    The Appplication Client must be a faster GUI (Applet or App) that do not cause interference in the normal functions of the Administrative System that owns the DBF Database, but must propagate any change maded to the database in real time.
    I was thinking to use BMP Entity Beans for manage the DBF Tables and Utility Beans to avoid constan access to the tables (As in Duke�s Bank Tutorial) but i do not know how to create a BMP Entity Bean without a Database that do not have an JDBC Driver ?????????
    i was able to gain access to DBF TAbles using an small library called TinySQl but i get lost in this point....
    any suggestions/comments about following matters will be apreciate:
    1.- Application Performance Tips
    2.- A better JDBC Driver for DBF Databases
    3.- Application�s Security
    4.- User Management
    5.- Any comments in general !!!!!!!!!!
    Initially 15 Duke�s Dollar will be offered to the best anwser, but i considering to offer 5 duke�s dollar to the best second anwser that can be earned through another post i will create later!!!!!!!!!11
    Regards.................

    Hello guys....
    This is my challenge and looking for some aim:
    I was asked to create an application that must read
    from an existing DBF Database of products (That is
    already used by an administrative system) an build a
    Price List in Real Time. The program must be
    accesible through Intranet using a web browser.
    The Appplication Client must be a faster GUI (Applet
    or App) that do not cause interference in the normal
    functions of the Administrative System that owns the
    DBF Database, but must propagate any change maded to
    the database in real time.
    I was thinking to use BMP Entity Beans for manage the
    DBF Tables and Utility Beans to avoid constan access
    to the tables (As in Duke�s Bank Tutorial) but i do
    not know how to create a BMP Entity Bean without a
    Database that do not have an JDBC Driver ?????????
    i was able to gain access to DBF TAbles using an
    small library called TinySQl but i get lost in this
    point....
    any suggestions/comments about following matters will
    be apreciate:
    1.- Application Performance Tips
    2.- A better JDBC Driver for DBF Databases
    3.- Application�s Security
    4.- User Management
    5.- Any comments in general !!!!!!!!!!
    Initially 15 Duke�s Dollar will be offered to the
    best anwser, but i considering to offer 5 duke�s
    dollar to the best second anwser that can be earned
    through another post i will create later!!!!!!!!!11
    Regards.................
    PLEASE DO NOT POST REPLIES IN THIS THREAD, USE THE UPPER THREAD THAT HAVE 10 DUKE�S DOLLARS ASSIGNED.
    SORRY

  • How to create database using Java Application or GUI?

    As what mention above, I would like to ask how to create a simple database that can keep information and perform some basic functions like add , delete, search, modify?
    Thanks in advance

    Don't waste your time trying to create databases. There are many good, free, databases already available. MySQL and Postgresql are just a couple that come to mind.

  • How to create interfaces or .java files to application modules,entites

    How did you create ToyStoreService.Java Interface in ToyStore sample application.Can you please explain in detail.
    urgent, pl help with any material if you know..

    I am following the same directory structure as of ToyStore demo for controller and View.
    I am getting page not available error.
    I did like this,
    d:
    MyWorkSpace
    Controller
    struts_config.xml
    /xx -- which forward to b.jsp
    View
    webroot
    JSP
    a.jsp
    b.jsp
    can you please give me one concrete procedure for implementing this..
    I mean how maintain these files and how to set the root path in project setting etC..
    Big job.. But it helps me a lot, Please do the big job.
    Thanks in advance.

  • How to view record from java source table

    hi,
    i had created a table as
    CREATE JAVA SOURCE NAMED "Hello" AS
    public class Hello {
    public static String hello() {
    return "Hello World"; } };
    also it compiled but i dont've idea to view the record from it
    can u help me

    Please check the following script --
    create or replace and resolve java source named "Hello"
    as
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    public class Hello extends Object
        public static String Display()
        throws IOException
            return "Hello World";
    create or replace procedure Hello(v_str  out varchar2)
    is
       language java
       name 'Hello.Display(java.lang.String) return String';
    create or replace procedure HDisplay
    is
    x  varchar2(400);
    begin
      Hello(x);
      dbms_output.put_line('String is: '||x);
    end;And, from sql prompt --
    exec HDisplay;N.B.: Not Tested...
    Regards.
    Satyaki De.
    Message was edited by:
    Satyaki_De

  • How to Create records for n periods

    hello,
    Iu2019m new to script logic and MDX and need any help.
    I would like to know how to do it:
    Include a new information (100) for dimension account Sales, from time period 2008.NOV, 5 periods, like that:
    2008.nov / 2008.dec/ 2009.JAN/ 2009.FEB/ 2009.MAR
    100/          100/           100/          100/          100
    Any suggestions?
    Thanks in advance.
    Sue

    Hello Kyle,
    Thanks for your reply.
    The application has a user-defined dimension, Emp. There is a property called date1 at the Emp dimension. Depending on the Emp selected, it will have a different initial time.
    The number of periods (5 in the example) can be different. There is a member at the account dimension, period, that defines how many periods must be stored.
    Information for Sales comes from other account, SalesTot. User inputs other values for SalesTot calculation.
    So I have,
    For emp1.dat1 = 2008.NOV
    have to update Sales account, beginning from 2008.NOV and updating for the others periods. The biggest difficulty is because of the initial time and I have to create new records for the sequence, and I cannot have a hierarchy for this.
    Hope this clarifies a bit.
    Thanks again.
    Sue

  • How to create an API java with Netbeans???

    can you please help me on creating an api with netbeans and explaine me how can i make it communicate with existing platforms.thank's

    First please learn how to ask a reasonable question that is both answerable and framed in a way that someone here would want to answer it: [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]

Maybe you are looking for