How to create a class like System.out.print
Hi,
I need to create a class like System.out.print
Say for ex: i have a class A ..
I need to call it A.b.c
cis the method..
could you tell me, how can i do this..
AMJ
class A{
public static final B b=new B();
class B{
public String getXXX(){
return "Callled getXXX()";
public class C{
public static void main(String[] args)
System.out.println(A.b.getXXX());
}
Similar Messages
-
How to create a class using java script..
Hi all,
Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
Thanks
Avis_su
<html>
<head><title>JSP Page</title></head>
<body>
<SCRIPT language = "JavaScript">
<!--
//Created classes
class book
var title: String;
var author:String;
function author()
doucument.write("Author is " +this.author);
function tile()
doucument.write("Title is " +this.title);
function printall()
var counter = 0;
function author();
function title();
var chapters = Array[String];
for(chapter in this chapters)
counter++;
document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
var thisbook = new book()
thisbook.author = "Sivagami";
thisbook.title = "MS in CS giude";
thisbook.chapters = new Array[10];
thisbook[0] = "Prepare to Excell in all ";
thisbook[1] = "Learn to be happy";
thisbook[2] = "Learn to be healthy mentally emotionally physically";
thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
thisbook.printall();
//-->
</script>
</body>
</html>Run this program to get your answer:
public class AnswerToYourPost {
public static void main(String args[]) {
System.out.println("TRUE/FALSE: This question
ion belongs on a Java forum.\n"
+ "ANSWER: " + ("Javascript" == "Java"));
}Since when do we compare objects for equality using operator == ? -
How to create a DB Source system in BW
Hi Guys,
Can anybody explain me how to create DB Connect source system in BW.
Points will be awarded.
Thanks,
ChinnaHi Chinna,
Below are the steps to be followed for the SS creation in BW :
Prerequisites :
1.System Number
2.System IP address
3.ALEOLTP like userid and password this is the RFC user ID in the R/3 system. Usually set to communication - must be set to dialog in the R/3 Source System for the duration of the create/restore connection process. Note: the password must be in capital letters.(If all instances are in unicode system)
1.At the time of making the connection, the R/3 source system will need to be opened for client independent configuration.
2.If it is a connection create or restore, the personal userid of the person doing the work must have SM59 access.
Follow the naming convention which is being used in your system.
1. Logon to r/3 source system using the r/3 RFC userid to check that the userid has been set to dialog user. It is mandatory that the r/3 source system userid be setup temporarily as dialog to create the connection. If not contact the requester to have this done before continuing with the next step.
Note: When re-checking to ensure that the r/3 userid is a dialog user, you may get prompted for new password. Change password, and make a note of the new password. Use this new password in the steps that follow for the r/3 RFC userid.
2. Logon to BW system using your own userid.
3. Enter transaction RSA1, In Source Systems, right-click on Source Systems as shown below to create new connection.
4. In the screen select the appropriate Source System connection type. Suppose your are creating connection for r/3 instance, so in this case we pick the very first option.
5. A popup window will get displayed asking for the necessary information. To fill in the appropriate information in the that screen you need the following information concerning the r/3 source system.
IP address (Application Server) &
System Number
Get this information for the r/3 source system from the SAP Logon Pad.
6. If Parameters have been incorrectly entered then the following error message will appear : Check connection parameters for the source system.
7. Re-check and re-enter correctly. If all is good then You will see the following prompt : Please log on as an administrator in the following screen.Click green check to continue.
8. This will bring you to the r/3 logon screen. Logon using the r/3 RFC id. Once logged on click Check in Check RFC destination dialog box.
9. Consider the r/3 RFC destination screen.
10. Check to make sure that BW system information (Userid, IP address, System Number etc) is correctly showing in the Technical Settings and Logon/Security tabs. Next do the following,
Step 1: Enter password for the BW RFC userid id.
Step 2: Save Settings
Step 3: From Test Menu , click on authorization. Ensure there are no errors
Step 4: Back out of screen.
11. System may ask you to logon as administrator again. Logon as in Step 10. This time click on Use in Check RFC destination dialog box.
Connection related processing will start up at this time, and continue for a little while (can be a couple minutes or more).
12. Subsequently, a dialog box will show up on the screen.
13. Pick option, Replicate As Well.
Replication and activation of data sources & transfer structures will begin.
With the completion of this step you will have successfully established this source system connection. To confirm, right-click on the new source system entry and click on check
14. If the connection is good, the following message with the source system ID will display at bottom left corner of screen : Source system connection is Ok.
Hope this will be helpful to you.
Thanks & Regards,
suchitra.V -
How to create a "Explorer" like in java
i'm just wonderin if there's a way on how to create "Windows Explorer" like in Java wherein you can view all your directories with yellow folder icon and also you can view all your files and drives....
And when you double click the yellow folder icon it will then expand and will show all the subfolders and files ...
How????
Thanks!Yes, there is a way. Look up JTree in the API.-can you post some code.... i cant figure out on how to use JTree...
i'm still confused on where will i get the entire directories of my drives...
thanks -
Hi how to create a class pool when i tried to create it has shown the following error
<b>Unable to change program from or to type K
Message no. DS165
Diagnosis
You tried to assign a type to a program that cannot be assigned in the program attributes, but can only be set internally by one of the tools in the ABAP Workbench.
The following program types are reserved:
F Reserved for Function Groups
Function groups are adminstered by the Function Builder, and you can only create or delete them using the Function Builder or the Object Navigator (Transaction SE80).
K Reserved for Class Defintions
Class definitions are administered in the Class Builder. You can only create or delete them using the Clas Builder or the Object Navigator.
J Reserved for Interface Definitions
Interface definitions are administered in the Clas Builder. You can only create or delete them using the class Builder or the Object Navigator.</b>Hi,
Though you get a popup for different options for different program types like Class pools, function groups etc in SE 38 Program attributes, you can't create them from Se38 transaction.
They have to be created from different places.
Class Pools are nothing but creating CLASSes and INTERFACEs using the T Code SE24.
This needs little Java/OOPs concepts to create and use them.
Hope this helps.
Regards,
Anji -
How to create development class (package)
Hi
Can anybody help me out in creating development class (package) to store ABAP programs.
Thanks in advance
RaghavHi
go with abap dictionary->select database table->provide the table for dev classs eg. V_TDEVC-> go for display option-> select utilities->select contents option-> select create dev class,
provide the name and short text,software component->create req.no.
with this dev class will be created
or
Use the transaction SE80.
1. Select "Package" from the list box.
2. Enter "ZEST" in the below text box
3. Press "Enter".
4. It will ask you whether to create.
5. Sy "Yes".
6. Give Short Description
7. Click Save button.
check this
How to create development class
If u find it useful plz reward the points
charitha
Message was edited by:
charitha kolla -
I have created an adaptor for OIM from a java jar file. When that adaptor executes after some updates on tables it produces some execptions/error.
I can not see the details of these exceptions as I do not know where is the standard output located when adapter is executed via OIM.
Where cen I see output from my code lines that contain: System.out.println()?
thanksI am not sure if logging is enabled as OIM was installed previously by another person - how can I check if it is enabled and how to use log4j in this case?
OIM Design Console window shows no messages comming from my System.out.print() statements.
/br
Djeno -
How to create static class in Netbeans ?
I want to create a static class in netbeans.
But it gives error like : static modifier not allowed here. as far as java prog concern it is syntactically correct.
for eg.
public static class Emp
-------body & methods
it looks correct syntactically, but gives error in netbeans, static modifier not allowed here. Why ? How to create static class in netbeans ?DrClap wrote:
I have occasionally seen the name "static class" used to denote a class whose members are all static.I think this is quite common.
But taking the name literally and trying to declare a class "static" is a little naive."naive" or being used to doing that in C#. -
How to create test database in system (have downloaded mxdb)
how to create test database in system (have downloaded mxdb)...Can someone pls help as I am new to SAP
Hi amit,
the maxdb documentation gives all information which is needed:
Install the software with SDBSETUP:
<a href="http://maxdb.sap.com/currentdoc/4c/da3b3c51bd4b3ae10000000a114084/frameset.htm">Installation</a>
Create a database with DBMGUI
<a href="http://maxdb.sap.com/currentdoc/84/d8d192570411d4aa82006094b92fad/frameset.htm">Create Instance</a>
Reagrds, Christiane Hienger -
How to create report image like artwork demo
Dear Pakars
How to create report image like artwork demo ?
Thanks
ImansyahHello,
Are you asking how to include images in a report? If so, take a look at the declarative blob support documentation -
http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
How to create a new table based out of old data rows
Hi All,
How to create a new table based out of old data rows. Also how can we find out the DBF for different users in a database?
SaqibNot very clear what you need. I'll try to interpret...
How to create a new table based out of old data rowsIf this means how to create a table from an existing one, then you can do :
SQL> create table <new table> as select * from <old table>;
if you need a subset of rows you can add a where clause.
how can we find out the DBF for different users in a database?Here I need some more clarification. What do you mean exactly ? -
How to create Rfc for EP system in Solution manager
Dear experts,
I am doing ChaRM configuration for my EP system ( java only).
I also configured CTS+ successfully but we want to integrate this with Chram in solman.
I have done all configuration according to standard doc for ChaRM.
But when creating project from solar_admin it is giving " NO RFC for DEP system"
so please suggest me how to create RFC for java system in Solution manager.
thanks in advance
dhirajHello,
You need to setup an ABAP communication client and system, that's done through the TMS settings:
For source system:
- CTC 1
- CTS_SYSTEM_TYPE JAVA (others for a MDM system)
- NON_ABAP_SYSTEM 1
- COMMUNICATION_SYSTEM: (SAPSID of the ABAP communication system (e.g. the domain controller))
- NON_ABAP_WBO_CLIENT (Client of the ABAP stack on which the Transport Organizer Web UI (CTS_BROWSER) is activated and will run.)
- WBO_GET_REQ_STRATEGY TAGGED
- WBO_REL_REQ_STRATEGY MANUAL
For quality and production Java system (target systems):
- CTC 1
- CTS_SYSTEM_TYPE JAVA (others for a MDM system)
- NON_ABAP_SYSTEM 1
- COMMUNICATION_SYSTEM: (SAPSID of the ABAP communication system (e.g. the domain controller))
- DEPLOY_WEB_SERVICE CTSDEPLOY
- DEPLOY_DATA_SHARE:
When this is done correctly, you will see the fields ABAP communication system and client populated in SMSY.
When ChaRM needs to operate on the non ABAP systems, it will take the RFCs for the communication system and client.
Best regards,
Miguel Ariñ -
Do you know how to create Front Panel like Web,
Do you know how to create Front Panel like Web, I mean like we pointed the word and click it will do another process instead by clicking push button.
If possible, i can click the link in the table... Any idea anyone
Solved!
Go to Solution.Hi ezam,
can you define more clearly exactly what you would actually like to do, and ill have a further look into it. I think smercurio_fc has understood it as I have, and is right with the activeX.
any way, give a shout back with exactly what you want to do and we see what we can do,
Richard
Richard S
Applications Engineer
Certified LabVIEW Associate Developer
National Instruments UK&Ireland -
How to make add the program system.out messages to a applet text field?
How to make add the program system.out messages to a applet text field?
System.out.println("I wanna displany this message on a applet text field, thanks");You may wish to change the output destination to a JTextArea. Please have a look at this link that likely shows what you want:
[http://forums.sun.com/thread.jspa?forumID=54&threadID=640376|http://forums.sun.com/thread.jspa?forumID=54&threadID=640376]
If you need other examples, search the forum. I found the search terms -- redirect system out textarea -- very helpful.
Good luck
Maybe you are looking for
-
I just updated my iPhone 6 to IOS 8.3. My safari will not let me search anything. If I type in a website URL, the Go button is greyed out. If I type in something to search on google, I press Go and nothing happens. Does anyone know how to fix this? I
-
ALV Grid Total Text (OOPS)
Hi All, I have a simple ALV Grid Report(OOPS), I would like to give a Text for Total Row. In REUSE_ALV_GRID we have the option of giving this text, but i am not able to figure it out how to get the same in OOPS. Regards Anup
-
Hello All, Here i am new to BPM. But here i got a scenario which involves BPM. can any one help me in the integration process logic for one sender interface and multiple interfaces. only one sender and one receiver. please d
-
Hello ~ can anyone tell me if I can get flash player for HTC HD7 windows phone?
HELLO IS THERE ANYONE OUT THERE THAT CAN TELL ME IF THERE IS A FLASH PLAYER AVAILABLE FOR THE T-MOBILE HTC HD7 WINDOWS MOBILE PHONE? I CANNOT GET ANY ANSWERS OUT OF T-MO & I CANNOT WATCH ALL THOSE FUN VIDEOS WITHOUT IT...I WOULD TRULY APPRECIATE IT..
-
Problems syncing outlook 2007 calendar and ipod classic
I did a quick search and found many people with this problem but no solution that worked for me. Basically my outlook 2007 calendar has suddenly stopped syncing with my ipod (I'm running Vista 64). Although I can see my calendar in the contacts tab -