Need help on these faq's
Hi,
Need some info on these questns...pls help
1.What is the advantages of using ABAP objects in reports?
2. What does an EXEC SQL statement do in ABAP. What is the disadvantage of using it?
3. The format of hierarchical sequential ALV?
4. Explain HOST command? Is it possible to run the host command in SAP environment?
5. How to backup Sapscript layout set?
6. Difference between parameters SET and GET?
7. What is the coding example for filling a BDC table?
8. What are the components of the SAP menu?
9. Explain Scroll function?
10. Steps to set a lock on a record within a DB table?
11. What are the exceptions in Function Modules?
12. What are the events driven in a batch job?
Hi David,
This is regarding SET & GET Parameters.
SAP allows you to make use of SPA/GPA technique to fill the input fields of a called transaction with data from the calling program.SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
To fill one, use:
SET PARAMETER ID <pid> FIELD <f>.
This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
To read an SPA/GPA parameter, use:
GET PARAMETER ID <pid> FIELD <f>.
This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
The relevant fields must each be linked to an SPA/GPA parameter.
On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter.
The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields.
The following executable program is connected to the logical database F1S and calls an update transaction:
REPORT BOOKINGS NO STANDARD PAGE HEADING.
TABLES SBOOK.
START-OF-SELECTION.
WRITE: 'Select a booking',
SKIP.
GET SBOOK.
WRITE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
HIDE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
AT LINE-SELECTION.
SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
'CON' FIELD SBOOK-CONNID,
'DAY' FIELD SBOOK-FLDATE,
'BOK' FIELD SBOOK-BOOKID.
CALL TRANSACTION 'BOOK'.
The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.
Reward If useful.
Regards,
Chitra
Similar Messages
-
I need help with these two crashes...
PL_DHashTableOperate | GCGraphBuilder::NoteRoot(unsigned int, void*, nsCycleCollectionParticipant*)
DFusionWebPlugin@0x86b5
The first one happened a couple of days ago, a few times and not on any specific website.
The second one only happens on the site below.The second one indicates a problem with the DFusionWebPlugin that shows in your More system details list.
# D'Fusion Web Plug-In for Safari 64 bits (3.00.13774.0)
# D'Fusion Web Plug-In (3.00.13774.0)
What you posted are crash signatures.<br />
It might help if you post the actual crash IDs (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).<br />
You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
See http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter) -
Hi guys ,
This is SuryaNarayana . I have collected some faqs from www.**************** but they have no answers please answers these questions
Questions are releated in to XI-BPM
1. Business Process Management is concerned with ?
a. Processes within and across applications
b. Planned or spontaneous Human interaction
c. Automating, streamlining, managing business processes
d. Moving process control from application to technology layer
e. All of the above
2. Which open modeling standard ccBPM adheres to?
a. BPEL
b. XML
c. WSDL
d. None of these
3. High-Tech industry ccBPM implementation guidelines are known as ?
a. RosettaNet Implementation Framework
b. CIDX
c. Marketpalce
d. SAP BC
4. Individual "Swim Lane" in BPM modelling contains ?
a. Business Scenarios from same company
b. Business Scenarios from same Application
5. Different Panes within BPM editor in IR ?
a. Header
b. Editing
c. Process Overview
d. Property
e. Output
f. Object
g. All of the above
6. Data Declaration of the Business process can be viewed in ?
a. Correlation in Object area
b. Container in Output area
c. Container in Object area
d. None of these
7. Which of these is not Messaging relevant Step type ?
a. Receive
b. Send
c. Transformation
d. Receiver Determination
e. Block
8. Control Step can be used for, except ?
a. Terminate current process
b. Trigger an Exception
c. Trigger an Alert
d. Define different processing braches for process
9. Which of the following triggers process to start?
a. By receiving amessage assinged to receive step
b. Batch job by scheduling in WAS
c. Both of these
d. None of these.
10. To route response messages to the
correct process instance, _______ object is used ?
a. Correlation
b. Interface
c. Adapter
d. Mapping
11. Correlation handling is handled by ?
a. BP engine
b. Integration Engine
c. Adapter Engine
d. None of these
12. Container element can be typecasted to, except ?
a. simple XSD/XML Schema
b. Abstract i/f
c. Receiver
d. Multilne(vector)
e. Sender
13. Outer Container block has container element 'O' and inner Container block
has container element 'I'. Then which of the following is true?
a. Both 'O' and 'I' are visible in outer block.
b. Both 'O' and 'I' are visible in inner block.
c. Both of these.
d. None of these.
14. Simple Fork process step terminates when ?
a. All branches are true.
b. All branches are false.
c. Either true.
d. Either false.
15. Collect process pattern types includes ?
a. Condition
b. Receiver message
c. Append message
d. Increase counter
e. Merge message
f. Send message
g. All
XI-Releated questions
1. SAP XI is an Integration technology and platform?
a) for SAP and non SAP applications.
b) for A2A and B2B scenarios
c) for asynchronous and synchronous applications
d) for cross-component Business Process Management.
2. XI represents the following layer in the NetWeaver stack:?
a) People Integration
b) Information Integration
c) Process Integration
3. XI uses the following web standards ?
a) WSDL
b) XSD
c) SOAP
4. XI components include?
a) SLD (System Landscape Directory)
b) Integration Builder
c) Integration Server
d) Central Monitoring
e) Adapter Engine
5. Integration Builder is a?
a) Java application
b) ABAP application
c) .NET application
6. Java Web Start is required for?
a) Caching java clients
b) Drawing pictures
c) Connect to SUN systems
7. SLD is a?
a) Client application
b) Server application
8. XI is technically a client of SLD?
a) TRUE
b) FALSE
9. SLD adheres to?
a) Common Information Model
b) Web Services Definition Language
c) XML Schema Definition Language
d) XML
10. Usage of PCK (Partner Connectivity Kit) ?
a) Allow small partners and subsidiaries to communicate natively with XI
b) For Partners to connect to database systems7444
c) Allow Partners to connect to .NET and Java applications
11. Certain adapters are needed in cases where the Integration Server
is to exchange messages with an R/3 system based on basis kernel lower than?
a) 6.10
b) 6.20
c) 6.40
d) 4.5
12. XI supports the following QoS (Quality of Services)?
a) BE (Best Effort)
b) Exactly Once (EO)
c) Exactly Once In Order (EOIO)
d) Exactly Twice In Order (ETIO)
13. QoS BE is equal to ?
a) Synchronous RFC (sRFC)
b) Asynchronous RFC (aRFC)
c) Transactional RFC (tRFC)
d) Queued RFC (qRFC)
14. QoS EO is equal to ?
a) Synchronous RFC (sRFC)
b) Asynchronous RFC (aRFC)
c) Transactional RFC (tRFC)
d) Queued RFC (qRFC)
15. QoS EOIO is equal to ?
a) Synchronous RFC (sRFC)
b) Asynchronous RFC (aRFC)
c) Transactional RFC (tRFC)
d) Queued RFC (qRFC)
16. Adapter Framework is based on ?
a) JCA (Java Connector Architecture)
b) NCA (.NET Connector Architecture)
c) PCK (Partner Connectivity Kit)
d) WSDL (Web Services Definition Language)
17. XI Adapter Engine is based on the integrated?
a) ABAP engine
b) J2EE engine
c) .NET engine
d) JCA (Java Connector Architecture)
18. Integration Processes are built using?
a) WSDL (Web Services Definition Language)
b) BPEL (Business Process Execution Language)
c) XSD (XML Schema Definition Language)
d) JCL (Java Connector Language)
19. Runtime Workbench in XI is the central monitoring tool for the following?
a) Component Monitoring
b) Message Monitoring
c) End-to-End Monitoring
d) Performance Monitoring
e) Queue Monitoring
f) Schedule Monitoring
20. XI uses enhanced version of SOAP protocol called?
a) XI XML
b) XI SOAP
c) XI XSD
d) XI PML
21. What is the cardinality of MESSAGE TYPES : DATA TYPES ?
a) 1:1
b) 2:1
c) 2:2
d) 1:0
22. What are the advantages of ASYNCHRONOUS updates?
a) Acknowledgement can be sent back
b) Messages can be persisted.
23. What are the advantages of SYNCHRONOUS updates?
a) Acknowledgement can be sent back (messages can be persisted with additional configuration)
b) Messages can be persisted.
c) Messages cannot be persisted.
24. What is the Message format used in XI for processing?
a) Specific implementation of SOAP which is XI XML
b) JMS
c) RFC
d) CIDX
25. What is an Adapter?
a) Adapters are used to communicate to Legacy or SAP systems with WAS version < 6.2
b) Adapters are used to retrieve information from Java, .NET systems
c) Adapters are used to import IDOC, RFC information.
26. In the Integration Repository, what is the KEY of an
object or how can an object be uniquely identified?
a) SWCV, Namespace, Name
b) Namespace, Name, Description
c) Name, Description, SWCV
d) SWCV, SWCV1, SWCV2
27. How do you classify NAME SPACE in an R/3 Environment?
a) Equivalent to function group
b) Equivalent to development class
c) Equivalent to function module
d) Equivalent to BAPI
28. What is ICM?
a) Internet Console Manager
b) Internet Communication Manager
c) Infrastructure Communication Manager
d) Intranet Communication Manager
29. A Customer has WAS 6.2 and has decided to use XI?
a) He cannot use XI unless WAS 6.2 is upgraded to WAS 6.4
b) Can use XI with some additional patches
c) WAS 6.2 already has XI in it. No need of any additional software
30. What is the name space of an IDOC?
a) urn:sap-com:document:sap:idoc:messages
b) urn:sap-com:document:idoc:sap:messages
c) urn:sap-com:sap.document:idoc:messages
d) urn:sap-com:document:idoc:messages
31. What is the name space of an RFC ?
a) urn:sap-com:document:rfc:sap:functions
b) urn:sap-com:document:bapi:rfc:functions
c) urn:sap-com:document:sap:rfc:functions
d) urn:sap-com:document:remote:rfc:functions
32. What doesnt get transported when the configuration is released?
a) All Objects will get transported
b) Generated proxies and application coding in the application
components does not get transported when the configuration is released.
c) Only application coding will not get transported.
d) Only generated proxies will not get transported.
33. How many Pipelines are there in the integration server?
a) Receiver Identification, Interface Identification, Message Branch,
Request Message Mapping, Outbound Binding, Call Adapter, Request Message Mapping.
b) Receiver Identification, Interface Identification, Message Branch,
Request Message Mapping, Outbound Binding.
c) Message Branch, Request Message Mapping, Outbound Binding,
Call Adapter, Request Message Mapping.
34. What are the possible Trace Levels?
a) 0 No Trace,1 Low Trace Level,2 Medium Trace Level,
3 High Trace Level,4 Expert Trace Level
b) 0 No Trace,1 Low Trace Level,
2 Medium Trace Level,3 High Trace Level
c) 10 Low Trace Level,20 Medium Trace Level,
30 High Trace Level,40 Expert Trace Level
35. Does JMS adapter need additional driver to communicate to database?
a) Yes
b) No
c) JMS adapter is not available in XI
36. What is use of PCK?
a) Partner Connectivity Kit that helps Partner Systems with no ability
to communicate in XML speak to the Business Systems.
b) PCK is used to deploy additional drivers
c) PCK can be used as an alternative to XI
37. What is Context Object? What is its role?
a) Context Objects are pointers to a specific element within the message,
for future reference. Encapsulate the access to data that is contained
in the payload or in the header of the message.
b) Another form of data types
c) Can be used instead of message types
38. What adapters dont need Sender Agreement?
a) HTTP, IDOC.
b) IDOC, RFC
c) IDOC, JMS
d) JDBC, JMS
39. What is the Protocol followed for Mail Adapter?
a) SMTP
b) IMAP
c) POP3
d) POP4
40. Where do you configure an Adapter?
a) Sender Agreement
b) Receiver Determination
c) Business System
d) Communication Channel
41. Can a JDBC adapter query the database table?
If yes, what are different possibilities?
a) Yes. You can configure sender and receiver communication channels.
A special XML format is defined for content coming from the
Integration Engine. This canonical format enables SQL Insert,
Update, Select, Delete or stored procedure statements to be processed.
A message is always processed in exactly one database transaction.
b) JDBC adapter cannot insert records in the database.
c) We should not insert, update records in the database directly.
42. The message monitoring status DLNG means ?
a) DLNG = Delivering.
b) DLNG = Dialing
c) DLNG = Detailing
d) DLNG = Dismantling
43. Where do you perform Content Based Routing?
a) Receiver Determination
b) Receiver Agreement
c) Sender Agreement
d) Communication Channel
44. What are the various supported mapping types?
a) Message Mapping, Java Mapping, XSLT Mapping, ABAP Mapping.
b) XSLT, Java, JDBC, JMS
c) XSLT, WSDL, XSD
45. With respect to ABAP proxies,
what are the methods that can be coded?
a) EXECUTE_SYNCHRONOUS, EXECUTE_ASYNCHRONOUS.
b) EXECUTE_SYNCHRONOUS, EXECUTE_ASYNCH.
c) EXECUTE_SYNCH, EXECUTE_ASYNCH
46. Fields under a node with a minoccurs of ZERO has been mapped.
The values dont appear in the target result, what could be wrong?
a) The parent node has not been assigned.
b) Parent node has cardinality 0 unbounded
c) Parent node has many fields
47. What is a SENDER COMM CHANNEL?
a) Sender Communication Channel is where you define the source system from
where the message/information goes to XI and also the adapter, the Sender System uses.
b) Sender Communication Channel is where you define the target system from where
the message/information goes out of XI and also the adapter, the Receiver System uses.
c) Sender Communication Channel is where you define the how the
interface mapping takes place between Sender and Receiver.
48. XSLT is supported but two statements were not supported. What are they?
a) <xsd:include>, <xsd:import>
b) <xsd:including>, <xsd:importing>
c) <xsd:includes>, <xsd:imports>
d) All statements are supported.
49. What steps can be inserted in an Exception branch?
a) Terminate a process, trigger an alert.
b) Terminate the interface, trigger IDOC.
c) Terminate exception, branch integration process.
50. What is multi mapping? When can it be used?
a) Multi Mapping is used to map abstract interfaces and can only be used in ccBPM.
b) Can be used when there are multiple interfaces from Sender systems.
c) Can be used when there are multiple interfaces from Receiver systems
51. The first step in the Integration process can be ?
a) Receive step
b) fork Step
c) Send Step
d) Block Step
52. An Exception raised by a step can be handled by ?
a) Only by exception handler in the same step
b) Only by exception handler in the outer step
c) By exception handler in the same step or in the outer step
53. An exception is raised by ?
a) Async or sync send step, transformation step and Control Step
b) Sync send step
c) By control step only
54. A message can be received by ?
a) Only a receive step
b) By receive, fork or loop step
c) By receive and block step
d) By send, block and Fork
55. What are the types of containers ?
a) Abstract
b) Simple & Abstract
c) Simple, Abstract and receiver
56. Which of these are true/false with user defined functions?
a) User defined functions are accessible only in the mapping where they are created
b) User defined functions are visible across namespace
c) User defined functions accessed in other mapping by copying it to that mapping
d) User defined functions are accessible in any mapping in a software component version
57. Java Mapping is executed by implementing the interface ?
a) com.sap.aii.mapping.api.StreamTransformation
b) com.sap.api.mapping.StreamTransformation
c) com.sap.api.mapping.aii.StreamTransformation
d) com.sap.mapping.api.StreamTransformation
58. An Idoc has been sent by a sender system to XI, but the idoc is not
received at the XI system which of these could be true/false ?
a) The destination system from the sender system to XI is not configured correctly.
b) The metadata in XI was copied/generated from the sender Idoc is corrupted
c) The destination system from XI to sender system is not defined correctly
d) Sender channel is not configured
59. While mapping which of these is true ? Can I use different mapping ?
a) You can use only one mapping at a time
b) You can use ABAP & JAVA mapping
c) You can use any mapping in any sequence any number of times
d) Different mapping cant be used together
60. To import the metadata from an R/3 system which of this is true/false ?
a) The import permitted in Software component need to be selected
b) You have to create ALE Name in SLD
c) You need to login to the destination (R/3) with a valid user
d) You need to login to destination(R/3) with a User having administrator rights
61. You are implementing XI for your customer, you have very good experience
working in ABAP. While mapping you want to do it in abap, but the option
available are only Message Mapping Java Mapping What would you do to
add the ABAP Mapping option. Where would you configure it?.
a) In Exchange profile
b) In s/w component
c) In Integration Repository
62. From the WSDL description from application server, you can generate ?
a) Java Proxies only
b) ABAP proxies
c) Java and ABAP proxies.
63. JMS adapter can be used for ?
a. IBM web sphere MQ
b. Sonique
c. Web services
64. Which of the following is true/false about HTTP plain adapters?
a. Sender channel is not required to be configured
b. Receiver channel is not required to be configured
c. Using this system can directly connect to integration server
65. You would install Adapter engine de-centrally ?
a. To install PCK
b. To monitor the messages de-centrally
c. To share load with the central adapter engine and increase performance.
66. To Receive the data using Select with JDBC adapter you would ?
a. You would configure a receiver channel
b. you would configure a sender channel
67. You find that the status in transaction SXI_CACHE is
not equal to 0. Which of the following would you perform?
a. Check the condition of BP in Integration Repository
b. Activate the BP in SXI_CHACHE.
c. Activate the BP in Integration Directory
68. Which are the methods that you need to call compulsorily in java mapping ?
a) execute(), setParameter()
b) Exit() Systemproperties()
c) Execute(), SetProperties()
69. What is the relationship between an integration process and business workflow?
a) The Business Process Engine is the same as the Workflow Engine.
b) The Business Process Engine needs external Workflow Engine
c) Business Process Engine is a new name for Workflow Engine
70. What are the different types that a container element can be based on?
a) Simple XSD types : XSD:DATE, XSD:TIME, XSD: INTEGER, XSD: STRING
b) Abstract Integer
c) Receiver
71. Which of the following is true with regards to Container Elements?
a) Elements of a super container are visible in sub container.
b) Elements of sub container are visible in super container
c) Container cannot have super or sub containers
d) Containers can have multiple elements.
72. Send message within an integration process to 8 receivers
at the same time, how can I do this?
a) Create a FORK statement with 8 branches
b) Create 8 interfaces
c) Create a loop with 8 interfaces
d) Create 8 branches
73. Which of the following Objects can be used in BPM ?
a) Context Object
b) Receiver Determination
c) Message Mapping
d) Interface Mapping
74.Could multiple instances of Integration process run at the same time ?
a) Yes
b) No
75. For ABAP mapping which of the following settings have to be done in Exchange Profile ?
a) Com.sap.aii.repository.mapping.additionaltypes = R3_ABAP | Abap-class; R3_XSLT | XSL
b) Com.sap.aii.repository.mapping.additionaltypes = R3_JAVA | Abap-class; R3_XSLT | XSL
c) Com.sap.aii.repository.mapping.additionaltypes = | Abap-class; R3_XSLT | XSL
76. How does Boolean functions work in message mappings ?
a) Boolean functions accept Boolean inputs and result in Boolean values
b) Boolean functions accept Boolean inputs and result in decimal values
c) Boolean functions accept Boolean inputs and result in alphanumeric values
77. While testing message mapping the source message occurs 3 times
but the target message occurs only once? What can be the reason ?
a) Target cardinality is not defined sufficiently
b) Source cannot repeat
c) Message mapping cannot handle multiple values
78. What JAR file is required to perform Java mapping ?
a) aii_map_api.jar
b) aii_map_api.java
c) aii_map_aii.jar
d) None
79. Collaboration Agreement is made of the following ?
a) Sender Agreement, Receiver Agreement
b) Sender Agreement, Sender Communication Channel
c) Sender Agreement, Receiver Communication Channel
d) Receiver Agreement, Receiver Communication Channel
80.What are the three IDOC related transactions in XI ?
a) IDX9
b) IDX1
c) IDX2
d) IDX5
e) IDX3
81.Is EOIO supported by RFC ?
a) YES
b) NO
82. Java Web Start is used for ?
a) Caching Java applications
b) to write Java code
c) to execute Java mapping
d) to perform JMS connectivity
83. Where do you define Usage Dependency?
a) Integration Repository
b) Integration Directory
c) SLD
d) Enterprise Portal
84. For ABAP mapping which class must be implemented ?
a) IF_MAPPING
b) IF_MAPPING_ABAP
c) MAPPING_ABAP
d) MAPPING_EXECUTE_ABAP
85.Component Monitoring in the RWB is used to display
the monitoring of the following components?
a) Integration Engine
b) Adapter Engine
c) Integration Directory
d) Integration Repository
e) Runtime Workbench
86.Does HTTP adapter support QoS BE?
a) Yes
b) No
87.IDOC adapter supports the following QoSs?
a) EO
b) EOIO
c) BE
d) All the above
88.The Client has decided to user HTTP adapter as Sender.
Which transaction should be used to configure the HTTP adapter?
a) SICF
b) SMICM
c) SM59
d) SE80
89.The following transaction is used to monitor XML messages in XI ?
a) SXMB_MONI
b) SM59
c) SXMB_ADM
d) SICF
90.File adapter has the following QoS?
a) BE
b) EO
c) EOIO
d) BEIO
91.When FILE adapter as Sender, we do not need Sender agreement ?
a) Yes
b) No
92. File Sender communication channel can be used by only one Sender agreement ?
a) True
b) False
93. SOAP adapter uses the following message protocol:?
a) SOAP 1.1
b) SOAP 1.2
c) SOAP 1.9
d) SOAP 1.3
94. Using the following URL we can display the content of CPACache?
a) http://<host>:<J2EEport >/CPACache
b) http://<host>:<J2EEport >/AdapterCache
c) http://<host>:<J2EEport >/CPACatch
d) http://<host>:<J2EEport >/CPACache/index.html
95. The following URL can be used to display the Adapter Status in XI ?
a) http://<host>:<J2EEport >/AdapterFramework
b) http://<host>:<J2EEport >/AdapterFramework/RFC
c) http://<host>:<J2EEport >/AdapterFramework/rep
d) http://<host>:<J2EEport >/AdapterStatus
96. Which security role need to be assigned to access the CPACache ?
a) xi_af_cpa_monitoring
b) xi_af_cache_monitor
c) xi_af_cpa_monitor
97. The following URL can be used to manually refresh the CPACache?
a) http://<host>:<J2EEport >/CPACache/refresh=delta
b) http://<host>:<J2EEport >/CPACache/refresh?mode=full
c) http://<host>:<J2EEport >/CPACache/refresh?mode=all
98. The Objects from repository are accessed from directory using user?
a) XIDIRUSER
b) XISUPER
c) XIAPPLUSER
d) XIADMIN
99. Information about the central and decentral Adapter
Framework installations is maintained in ?
a) SLD
b) CLD
c) IR
d) ID
100. Special drivers required for JDBC, JMS adapters can be deployed using ?
a) SPM (Software Procurement Manager)
b) SDM (Software Deployment Manager)
c) SCM (Software Change Manager)
d) SOM (Software Ownership Manager)Hi guys ,
This is SuryaNarayana . I have collected some faqs from www.**************** but they have no answers please answers these questions
Questions are releated in to XI-BPM
1. Business Process Management is concerned with ?
a. Processes within and across applications
b. Planned or spontaneous Human interaction
c. Automating, streamlining, managing business processes
d. Moving process control from application to technology layer
e. All of the above
2. Which open modeling standard ccBPM adheres to?
a. BPEL
b. XML
c. WSDL
d. None of these
3. High-Tech industry ccBPM implementation guidelines are known as ?
a. RosettaNet Implementation Framework
b. CIDX
c. Marketpalce
d. SAP BC
4. Individual "Swim Lane" in BPM modelling contains ?
a. Business Scenarios from same company
b. Business Scenarios from same Application
5. Different Panes within BPM editor in IR ?
a. Header
b. Editing
c. Process Overview
d. Property
e. Output
f. Object
g. All of the above
6. Data Declaration of the Business process can be viewed in ?
a. Correlation in Object area
b. Container in Output area
c. Container in Object area
d. None of these
7. Which of these is not Messaging relevant Step type ?
a. Receive
b. Send
c. Transformation
d. Receiver Determination
e. Block
8. Control Step can be used for, except ?
a. Terminate current process
b. Trigger an Exception
c. Trigger an Alert
d. Define different processing braches for process
9. Which of the following triggers process to start?
a. By receiving amessage assinged to receive step
b. Batch job by scheduling in WAS
c. Both of these
d. None of these.
10. To route response messages to the
correct process instance, _______ object is used ?
a. Correlation
b. Interface
c. Adapter
d. Mapping
11. Correlation handling is handled by ?
a. BP engine
b. Integration Engine
c. Adapter Engine
d. None of these
12. Container element can be typecasted to, except ?
a. simple XSD/XML Schema
b. Abstract i/f
c. Receiver
d. Multilne(vector)
e. Sender
13. Outer Container block has container element 'O' and inner Container block
has container element 'I'. Then which of the following is true?
a. Both 'O' and 'I' are visible in outer block.
b. Both 'O' and 'I' are visible in inner block.
c. Both of these.
d. None of these.
14. Simple Fork process step terminates when ?
a. All branches are true.
b. All branches are false.
c. Either true.
d. Either false.
15. Collect process pattern types includes ?
a. Condition
b. Receiver message
c. Append message
d. Increase counter
e. Merge message
f. Send message
g. All
XI-Releated questions
1. SAP XI is an Integration technology and platform?
a) for SAP and non SAP applications.
b) for A2A and B2B scenarios
c) for asynchronous and synchronous applications
d) for cross-component Business Process Management.
2. XI represents the following layer in the NetWeaver stack:?
a) People Integration
b) Information Integration
c) Process Integration
3. XI uses the following web standards ?
a) WSDL
b) XSD
c) SOAP
4. XI components include?
a) SLD (System Landscape Directory)
b) Integration Builder
c) Integration Server
d) Central Monitoring
e) Adapter Engine
5. Integration Builder is a?
a) Java application
b) ABAP application
c) .NET application
6. Java Web Start is required for?
a) Caching java clients
b) Drawing pictures
c) Connect to SUN systems
7. SLD is a?
a) Client application
b) Server application
8. XI is technically a client of SLD?
a) TRUE
b) FALSE
9. SLD adheres to?
a) Common Information Model
b) Web Services Definition Language
c) XML Schema Definition Language
d) XML
10. Usage of PCK (Partner Connectivity Kit) ?
a) Allow small partners and subsidiaries to communicate natively with XI
b) For Partners to connect to database systems7444
c) Allow Partners to connect to .NET and Java applications
11. Certain adapters are needed in cases where the Integration Server
is to exchange messages with an R/3 system based on basis kernel lower than?
a) 6.10
b) 6.20
c) 6.40
d) 4.5
12. XI supports the following QoS (Quality of Services)?
a) BE (Best Effort)
b) Exactly Once (EO)
c) Exactly Once In Order (EOIO)
d) Exactly Twice In Order (ETIO)
13. QoS BE is equal to ?
a) Synchronous RFC (sRFC)
b) Asynchronous RFC (aRFC)
c) Transactional RFC (tRFC)
d) Queued RFC (qRFC)
14. QoS EO is equal to ?
a) Synchronous RFC (sRFC)
b) Asynchronous RFC (aRFC)
c) Transactional RFC (tRFC)
d) Queued RFC (qRFC)
15. QoS EOIO is equal to ?
a) Synchronous RFC (sRFC)
b) Asynchronous RFC (aRFC)
c) Transactional RFC (tRFC)
d) Queued RFC (qRFC)
16. Adapter Framework is based on ?
a) JCA (Java Connector Architecture)
b) NCA (.NET Connector Architecture)
c) PCK (Partner Connectivity Kit)
d) WSDL (Web Services Definition Language)
17. XI Adapter Engine is based on the integrated?
a) ABAP engine
b) J2EE engine
c) .NET engine
d) JCA (Java Connector Architecture)
18. Integration Processes are built using?
a) WSDL (Web Services Definition Language)
b) BPEL (Business Process Execution Language)
c) XSD (XML Schema Definition Language)
d) JCL (Java Connector Language)
19. Runtime Workbench in XI is the central monitoring tool for the following?
a) Component Monitoring
b) Message Monitoring
c) End-to-End Monitoring
d) Performance Monitoring
e) Queue Monitoring
f) Schedule Monitoring
20. XI uses enhanced version of SOAP protocol called?
a) XI XML
b) XI SOAP
c) XI XSD
d) XI PML
21. What is the cardinality of MESSAGE TYPES : DATA TYPES ?
a) 1:1
b) 2:1
c) 2:2
d) 1:0
22. What are the advantages of ASYNCHRONOUS updates?
a) Acknowledgement can be sent back
b) Messages can be persisted.
23. What are the advantages of SYNCHRONOUS updates?
a) Acknowledgement can be sent back (messages can be persisted with additional configuration)
b) Messages can be persisted.
c) Messages cannot be persisted.
24. What is the Message format used in XI for processing?
a) Specific implementation of SOAP which is XI XML
b) JMS
c) RFC
d) CIDX
25. What is an Adapter?
a) Adapters are used to communicate to Legacy or SAP systems with WAS version < 6.2
b) Adapters are used to retrieve information from Java, .NET systems
c) Adapters are used to import IDOC, RFC information.
26. In the Integration Repository, what is the KEY of an
object or how can an object be uniquely identified?
a) SWCV, Namespace, Name
b) Namespace, Name, Description
c) Name, Description, SWCV
d) SWCV, SWCV1, SWCV2
27. How do you classify NAME SPACE in an R/3 Environment?
a) Equivalent to function group
b) Equivalent to development class
c) Equivalent to function module
d) Equivalent to BAPI
28. What is ICM?
a) Internet Console Manager
b) Internet Communication Manager
c) Infrastructure Communication Manager
d) Intranet Communication Manager
29. A Customer has WAS 6.2 and has decided to use XI?
a) He cannot use XI unless WAS 6.2 is upgraded to WAS 6.4
b) Can use XI with some additional patches
c) WAS 6.2 already has XI in it. No need of any additional software
30. What is the name space of an IDOC?
a) urn:sap-com:document:sap:idoc:messages
b) urn:sap-com:document:idoc:sap:messages
c) urn:sap-com:sap.document:idoc:messages
d) urn:sap-com:document:idoc:messages
31. What is the name space of an RFC ?
a) urn:sap-com:document:rfc:sap:functions
b) urn:sap-com:document:bapi:rfc:functions
c) urn:sap-com:document:sap:rfc:functions
d) urn:sap-com:document:remote:rfc:functions
32. What doesnt get transported when the configuration is released?
a) All Objects will get transported
b) Generated proxies and application coding in the application
components does not get transported when the configuration is released.
c) Only application coding will not get transported.
d) Only generated proxies will not get transported.
33. How many Pipelines are there in the integration server?
a) Receiver Identification, Interface Identification, Message Branch,
Request Message Mapping, Outbound Binding, Call Adapter, Request Message Mapping.
b) Receiver Identification, Interface Identification, Message Branch,
Request Message Mapping, Outbound Binding.
c) Message Branch, Request Message Mapping, Outbound Binding,
Call Adapter, Request Message Mapping.
34. What are the possible Trace Levels?
a) 0 No Trace,1 Low Trace Level,2 Medium Trace Level,
3 High Trace Level,4 Expert Trace Level
b) 0 No Trace,1 Low Trace Level,
2 Medium Trace Level,3 High Trace Level
c) 10 Low Trace Level,20 Medium Trace Level,
30 High Trace Level,40 Expert Trace Level
35. Does JMS adapter need additional driver to communicate to database?
a) Yes
b) No
c) JMS adapter is not available in XI
36. What is use of PCK?
a) Partner Connectivity Kit that helps Partner Systems with no ability
to communicate in XML speak to the Business Systems.
b) PCK is used to deploy additional drivers
c) PCK can be used as an alternative to XI
37. What is Context Object? What is its role?
a) Context Objects are pointers to a specific element within the message,
for future reference. Encapsulate the access to data that is contained
in the payload or in the header of the message.
b) Another form of data types
c) Can be used instead of message types
38. What adapters dont need Sender Agreement?
a) HTTP, IDOC.
b) IDOC, RFC
c) IDOC, JMS
d) JDBC, JMS
39. What is the Protocol followed for Mail Adapter?
a) SMTP
b) IMAP
c) POP3
d) POP4
40. Where do you configure an Adapter?
a) Sender Agreement
b) Receiver Determination
c) Business System
d) Communication Channel
41. Can a JDBC adapter query the database table?
If yes, what are different possibilities?
a) Yes. You can configure sender and receiver communication channels.
A special XML format is defined for content coming from the
Integration Engine. This canonical format enables SQL Insert,
Update, Select, Delete or stored procedure statements to be processed.
A message is always processed in exactly one database transaction.
b) JDBC adapter cannot insert records in the database.
c) We should not insert, update records in the database directly.
42. The message monitoring status DLNG means ?
a) DLNG = Delivering.
b) DLNG = Dialing
c) DLNG = Detailing
d) DLNG = Dismantling
43. Where do you perform Content Based Routing?
a) Receiver Determination
b) Receiver Agreement
c) Sender Agreement
d) Communication Channel
44. What are the various supported mapping types?
a) Message Mapping, Java Mapping, XSLT Mapping, ABAP Mapping.
b) XSLT, Java, JDBC, JMS
c) XSLT, WSDL, XSD
45. With respect to ABAP proxies,
what are the methods that can be coded?
a) EXECUTE_SYNCHRONOUS, EXECUTE_ASYNCHRONOUS.
b) EXECUTE_SYNCHRONOUS, EXECUTE_ASYNCH.
c) EXECUTE_SYNCH, EXECUTE_ASYNCH
46. Fields under a node with a minoccurs of ZERO has been mapped.
The values dont appear in the target result, what could be wrong?
a) The parent node has not been assigned.
b) Parent node has cardinality 0 unbounded
c) Parent node has many fields
47. What is a SENDER COMM CHANNEL?
a) Sender Communication Channel is where you define the source system from
where the message/information goes to XI and also the adapter, the Sender System uses.
b) Sender Communication Channel is where you define the target system from where
the message/information goes out of XI and also the adapter, the Receiver System uses.
c) Sender Communication Channel is where you define the how the
interface mapping takes place between Sender and Receiver.
48. XSLT is supported but two statements were not supported. What are they?
a) <xsd:include>, <xsd:import>
b) <xsd:including>, <xsd:importing>
c) <xsd:includes>, <xsd:imports>
d) All statements are supported.
49. What steps can be inserted in an Exception branch?
a) Terminate a process, trigger an alert.
b) Terminate the interface, trigger IDOC.
c) Terminate exception, branch integration process.
50. What is multi mapping? When can it be used?
a) Multi Mapping is used to map abstract interfaces and can only be used in ccBPM.
b) Can be used when there are multiple interfaces from Sender systems.
c) Can be used when there are multiple interfaces from Receiver systems
51. The first step in the Integration process can be ?
a) Receive step
b) fork Step
c) Send Step
d) Block Step
52. An Exception raised by a step can be handled by ?
a) Only by exception handler in the same step
b) Only by exception handler in the outer step
c) By exception handler in the same step or in the outer step
53. An exception is raised by ?
a) Async or sync send step, transformation step and Control Step
b) Sync send step
c) By control step only
54. A message can be received by ?
a) Only a receive step
b) By receive, fork or loop step
c) By receive and block step
d) By send, block and Fork
55. What are the types of containers ?
a) Abstract
b) Simple & Abstract
c) Simple, Abstract and receiver
56. Which of these are true/false with user defined functions?
a) User defined functions are accessible only in the mapping where they are created
b) User defined functions are visible across namespace
c) User defined functions accessed in other mapping by copying it to that mapping
d) User defined functions are accessible in any mapping in a software component version
57. Java Mapping is executed by implementing the interface ?
a) com.sap.aii.mapping.api.StreamTransformation
b) com.sap.api.mapping.StreamTransformation
c) com.sap.api.mapping.aii.StreamTransformation
d) com.sap.mapping.api.StreamTransformation
58. An Idoc has been sent by a sender system to XI, but the idoc is not
received at the XI system which of these could be true/false ?
a) The destination system from the sender system to XI is not configured correctly.
b) The metadata in XI was copied/generated from the sender Idoc is corrupted
c) The destination system from XI to sender system is not defined correctly
d) Sender channel is not configured
59. While mapping which of these is true ? Can I use different mapping ?
a) You can use only one mapping at a time
b) You can use ABAP & JAVA mapping
c) You can use any mapping in any sequence any number of times
d) Different mapping cant be used together
60. To import the metadata from an R/3 system which of this is true/false ?
a) The import permitted in Software component need to be selected
b) You have to create ALE Name in SLD
c) You need to login to the destination (R/3) with a valid user
d) You need to login to destination(R/3) with a User having administrator rights
61. You are implementing XI for your customer, you have very good experience
working in ABAP. While mapping you want to do it in abap, but the option
available are only Message Mapping Java Mapping What would you do to
add the ABAP Mapping option. Where would you configure it?.
a) In Exchange profile
b) In s/w component
c) In Integration Repository
62. From the WSDL description from application server, you can generate ?
a) Java Proxies only
b) ABAP proxies
c) Java and ABAP proxies.
63. JMS adapter can be used for ?
a. IBM web sphere MQ
b. Sonique
c. Web services
64. Which of the following is true/false about HTTP plain adapters?
a. Sender channel is not required to be configured
b. Receiver channel is not required to be configured
c. Using this system can directly connect to integration server
65. You would install Adapter engine de-centrally ?
a. To install PCK
b. To monitor the messages de-centrally
c. To share load with the central adapter engine and increase performance.
66. To Receive the data using Select with JDBC adapter you would ?
a. You would configure a receiver channel
b. you would configure a sender channel
67. You find that the status in transaction SXI_CACHE is
not equal to 0. Which of the following would you perform?
a. Check the condition of BP in Integration Repository
b. Activate the BP in SXI_CHACHE.
c. Activate the BP in Integration Directory
68. Which are the methods that you need to call compulsorily in java mapping ?
a) execute(), setParameter()
b) Exit() Systemproperties()
c) Execute(), SetProperties()
69. What is the relationship between an integration process and business workflow?
a) The Business Process Engine is the same as the Workflow Engine.
b) The Business Process Engine needs external Workflow Engine
c) Business Process Engine is a new name for Workflow Engine
70. What are the different types that a container element can be based on?
a) Simple XSD types : XSD:DATE, XSD:TIME, XSD: INTEGER, XSD: STRING
b) Abstract Integer
c) Receiver
71. Which of the following is true with regards to Container Elements?
a) Elements of a super container are visible in sub container.
b) Elements of sub container are visible in super container
c) Container cannot have super or sub containers
d) Containers can have multiple elements.
72. Send message within an integration process to 8 receivers
at the same time, how can I do this?
a) Create a FORK statement with 8 branches
b) Create 8 interfaces
c) Create a loop with 8 interfaces
d) Create 8 branches
73. Which of the following Objects can be used in BPM ?
a) Context Object
b) Receiver Determination
c) Message Mapping
d) Interface Mapping
74.Could multiple instances of Integration process run at the same time ?
a) Yes
b) No
75. For ABAP mapping which of the following settings have to be done in Exchange Profile ?
a) Com.sap.aii.repository.mapping.additionaltypes = R3_ABAP | Abap-class; R3_XSLT | XSL
b) Com.sap.aii.repository.mapping.additionaltypes = R3_JAVA | Abap-class; R3_XSLT | XSL
c) Com.sap.aii.repository.mapping.additionaltypes = | Abap-class; R3_XSLT | XSL
76. How does Boolean functions work in message mappings ?
a) Boolean functions accept Boolean inputs and result in Boolean values
b) Boolean functions accept Boolean inputs and result in decimal values
c) Boolean functions accept Boolean inputs and result in alphanumeric values
77. While testing message mapping the source message occurs 3 times
but the target message occurs only once? What can be the reason ?
a) Target cardinality is not defined sufficiently
b) Source cannot repeat
c) Message mapping cannot handle multiple values
78. What JAR file is required to perform Java mapping ?
a) aii_map_api.jar
b) aii_map_api.java
c) aii_map_aii.jar
d) None
79. Collaboration Agreement is made of the following ?
a) Sender Agreement, Receiver Agreement
b) Sender Agreement, Sender Communication Channel
c) Sender Agreement, Receiver Communication Channel
d) Receiver Agreement, Receiver Communication Channel
80.What are the three IDOC related transactions in XI ?
a) IDX9
b) IDX1
c) IDX2
d) IDX5
e) IDX3
81.Is EOIO supported by RFC ?
a) YES
b) NO
82. Java Web Start is used for ?
a) Caching Java applications
b) to write Java code
c) to execute Java mapping
d) to perform JMS connectivity
83. Where do you define Usage Dependency?
a) Integration Repository
b) Integration Directory
c) SLD
d) Enterprise Portal
84. For ABAP mapping which class must be implemented ?
a) IF_MAPPING
b) IF_MAPPING_ABAP
c) MAPPING_ABAP
d) MAPPING_EXECUTE_ABAP
85.Component Monitoring in the RWB is used to display
the monitoring of the following components?
a) Integration Engine
b) Adapter Engine
c) Integration Directory
d) Integration Repository
e) Runtime Workbench
86.Does HTTP adapter support QoS BE?
a) Yes
b) No
87.IDOC adapter supports the following QoSs?
a) EO
b) EOIO
c) BE
d) All the above
88.The Client has decided to user HTTP adapter as Sender.
Which transaction should be used to configure the HTTP adapter?
a) SICF
b) SMICM
c) SM59
d) SE80
89.The following transaction is used to monitor XML messages in XI ?
a) SXMB_MONI
b) SM59
c) SXMB_ADM
d) SICF
90.File adapter has the following QoS?
a) BE
b) EO
c) EOIO
d) BEIO
91.When FILE adapter as Sender, we do not need Sender agreement ?
a) Yes
b) No
92. File Sender communication channel can be used by only one Sender agreement ?
a) True
b) False
93. SOAP adapter uses the following message protocol:?
a) SOAP 1.1
b) SOAP 1.2
c) SOAP 1.9
d) SOAP 1.3
94. Using the following URL we can display the content of CPACache?
a) http://<host>:<J2EEport >/CPACache
b) http://<host>:<J2EEport >/AdapterCache
c) http://<host>:<J2EEport >/CPACatch
d) http://<host>:<J2EEport >/CPACache/index.html
95. The following URL can be used to display the Adapter Status in XI ?
a) http://<host>:<J2EEport >/AdapterFramework
b) http://<host>:<J2EEport >/AdapterFramework/RFC
c) http://<host>:<J2EEport >/AdapterFramework/rep
d) http://<host>:<J2EEport >/AdapterStatus
96. Which security role need to be assigned to access the CPACache ?
a) xi_af_cpa_monitoring
b) xi_af_cache_monitor
c) xi_af_cpa_monitor
97. The following URL can be used to manually refresh the CPACache?
a) http://<host>:<J2EEport >/CPACache/refresh=delta
b) http://<host>:<J2EEport >/CPACache/refresh?mode=full
c) http://<host>:<J2EEport >/CPACache/refresh?mode=all
98. The Objects from repository are accessed from directory using user?
a) XIDIRUSER
b) XISUPER
c) XIAPPLUSER
d) XIADMIN
99. Information about the central and decentral Adapter
Framework installations is maintained in ?
a) SLD
b) CLD
c) IR
d) ID
100. Special drivers required for JDBC, JMS adapters can be deployed using ?
a) SPM (Software Procurement Manager)
b) SDM (Software Deployment Manager)
c) SCM (Software Change Manager)
d) SOM (Software Ownership Manager) -
Need help merging these two files togehter
I have the following class files one reads in a file another creates a file, Can somebody help me put the two class files together so i have one file which creates a file and reads it in, as i am stuck as to which bits need to be copied and which bits i only need once.
/////////////////////////////////////////////////Code to create and save data in to file////////////////
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import bank.BankUI;
import bank.*;
public class CreateSequentialFile extends JFrame {
private ObjectOutputStream output;
private BankUI userInterface;
private JButton enterButton, openButton;
private Store store;
private Employee record;
// set up GUI
public CreateSequentialFile()
super( "Creating a Sequential File of Objects" ); // appears in top of gui
// create instance of reusable user interface
userInterface = new BankUI( 9 ); // number of textfields
getContentPane().add( userInterface, BorderLayout.CENTER );
// configure button doTask1 for use in this program
openButton = userInterface.getDoTask1Button();
openButton.setText( "Save to file" );
// register listener to call openFile when button pressed
openButton.addActionListener(
// anonymous inner class to handle openButton event
new ActionListener() {
// call openFile when button pressed
public void actionPerformed( ActionEvent event )
openFile();
} // end anonymous inner class
); // end call to addActionListener
// configure button doTask2 for use in this program
enterButton = userInterface.getDoTask2Button();
enterButton.setText( "Save to file..." );
enterButton.setEnabled( false ); // disable button
// register listener to call addRecord when button pressed
enterButton.addActionListener(
// anonymous inner class to handle enterButton event
new ActionListener() {
// call addRecord when button pressed
public void actionPerformed( ActionEvent event )
addRecord();
} // end anonymous inner class
); // end call to addActionListener
// register window listener to handle window closing event
addWindowListener(
// anonymous inner class to handle windowClosing event
new WindowAdapter() {
// add current record in GUI to file, then close file
public void windowClosing( WindowEvent event )
if ( output != null )
addRecord();
closeFile();
} // end anonymous inner class
); // end call to addWindowListener
setSize( 600, 500 );
setVisible( true );
store = new Store(100);
} // end CreateSequentialFile constructor
// allow user to specify file name
private void openFile()
// display file dialog, so user can choose file to open
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode( JFileChooser.FILES_ONLY );
int result = fileChooser.showSaveDialog( this );
// if user clicked Cancel button on dialog, return
if ( result == JFileChooser.CANCEL_OPTION )
return;
File fileName = fileChooser.getSelectedFile(); // get selected file
// display error if invalid
if ( fileName == null || fileName.getName().equals( "" ) )
JOptionPane.showMessageDialog( this, "Invalid File Name",
"Invalid File Name", JOptionPane.ERROR_MESSAGE );
else {
// open file
try {
output = new ObjectOutputStream(
new FileOutputStream( fileName ) );
openButton.setEnabled( false );
enterButton.setEnabled( true );
// process exceptions from opening file
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error Opening File",
"Error", JOptionPane.ERROR_MESSAGE );
} // end else
} // end method openFile
// close file and terminate application
private void closeFile()
// close file
try {
int storeSize = store.getCount();
for (int i = 0; i<storeSize;i++)
output.writeObject(store.elementAt(i));
output.close();
System.exit( 0 );
// process exceptions from closing file
catch( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error closing file",
"Error", JOptionPane.ERROR_MESSAGE );
System.exit( 1 );
} // end method closeFile
// add record to file
public void addRecord()
int employeeNumber = 0;
String fieldValues[] = userInterface.getFieldValues();
// if account field value is not empty
if ( ! fieldValues[ BankUI.IDNUMBER ].equals( "" ) ) {
// output values to file
try {
employeeNumber = Integer.parseInt(
fieldValues[ BankUI.IDNUMBER ] );
String dob = fieldValues[ BankUI.DOB ];
String[] dateofBirth = dob.split ("-"); // what used to put between number
String sDate = fieldValues[ BankUI.START ];
String[] startDate = sDate.split ("-");
String sex = fieldValues[ BankUI.GENDER ];
char gender = (sex.charAt(0));
if ( employeeNumber >= 0 ) {
record = new Employee(
fieldValues[ BankUI.NAME ],
gender,
new Date( Integer.parseInt(dateofBirth[0]),
Integer.parseInt(dateofBirth[1]),
Integer.parseInt(dateofBirth[2])),
fieldValues[ BankUI.ADDRESS ],
fieldValues[ BankUI.NATINTNO ],
fieldValues[ BankUI.PHONE ],
fieldValues[ BankUI.IDNUMBER ],
new Date( Integer.parseInt(startDate[0]),
Integer.parseInt(startDate[1]),
Integer.parseInt(startDate[2])),
Float.parseFloat( fieldValues[ BankUI.SALARY ] ));
if (!store.isFull())
store.add(record);
else
JOptionPane.showMessageDialog( this, "The Store is full you cannot add\n"+
"anymore employees. \nPlease Save Current File and Create a New File." );
System.out.println("Store full");
store.displayAll();
System.out.println("Count is " + store.getCount());
// output record and flush buffer
//should be written to fuile in the close file method.
output.flush();
else
JOptionPane.showMessageDialog( this,
"Account number must be greater than 0",
"Bad account number", JOptionPane.ERROR_MESSAGE );
// clear textfields
userInterface.clearFields();
} // end try
// process invalid account number or balance format
catch ( NumberFormatException formatException ) {
JOptionPane.showMessageDialog( this,
"Bad ID number, Date or Salary", "Invalid Number Format",
JOptionPane.ERROR_MESSAGE );
// process exceptions from file output
catch ( ArrayIndexOutOfBoundsException ArrayException ) {
JOptionPane.showMessageDialog( this, "Error with Start Date or Date of Birth",
"IO Exception", JOptionPane.ERROR_MESSAGE );
// process exceptions from file output
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error writing to file",
"IO Exception", JOptionPane.ERROR_MESSAGE );
closeFile();
} // end if
} // end method addRecord
public static void main( String args[] )
new CreateSequentialFile();
} // end class CreateSequentialFile
/////////////////////////////Code to read and cycle through the file created above///////////
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import bank.*;
public class ReadSequentialFile extends JFrame {
private ObjectInputStream input;
private BankUI userInterface;
private JButton nextButton, openButton, nextRecordButton ;
private Store store = new Store(100);
private Employee employeeList[] = new Employee[100];
private int count = 0, next = 0;
// Constructor -- initialize the Frame
public ReadSequentialFile()
super( "Add Employee" );
// create instance of reusable user interface
userInterface = new BankUI( 9 );
getContentPane().add( userInterface, BorderLayout.CENTER );
// get reference to generic task button doTask1 from BankUI
openButton = userInterface.getDoTask1Button();
openButton.setText( "Open File" );
// register listener to call openFile when button pressed
openButton.addActionListener(
// anonymous inner class to handle openButton event
new ActionListener() {
// close file and terminate application
public void actionPerformed( ActionEvent event )
openFile();
} // end anonymous inner class
); // end call to addActionListener
// register window listener for window closing event
addWindowListener(
// anonymous inner class to handle windowClosing event
new WindowAdapter() {
// close file and terminate application
public void windowClosing( WindowEvent event )
if ( input != null )
closeFile();
System.exit( 0 );
} // end anonymous inner class
); // end call to addWindowListener
// get reference to generic task button doTask2 from BankUI
nextButton = userInterface.getDoTask2Button();
nextButton.setText( "Next Record" );
nextButton.setEnabled( false );
// register listener to call readRecord when button pressed
nextButton.addActionListener(
// anonymous inner class to handle nextRecord event
new ActionListener() {
// call readRecord when user clicks nextRecord
public void actionPerformed( ActionEvent event )
readRecord();
} // end anonymous inner class
); // end call to addActionListener
//get reference to generic task button do Task3 from BankUI
// get reference to generic task button doTask3 from BankUI
nextRecordButton = userInterface.getDoTask3Button();
nextRecordButton.setText( "Get Next Record" );
nextRecordButton.setEnabled( false );
// register listener to call readRecord when button pressed
nextRecordButton.addActionListener(
// anonymous inner class to handle nextRecord event
new ActionListener() {
// call readRecord when user clicks nextRecord
public void actionPerformed( ActionEvent event )
getNextRecord();
} // end anonymous inner class
); // end call to addActionListener
pack();
setSize( 600, 300 );
setVisible( true );
} // end ReadSequentialFile constructor
// enable user to select file to open
private void openFile()
// display file dialog so user can select file to open
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode( JFileChooser.FILES_ONLY );
int result = fileChooser.showOpenDialog( this );
// if user clicked Cancel button on dialog, return
if ( result == JFileChooser.CANCEL_OPTION )
return;
// obtain selected file
File fileName = fileChooser.getSelectedFile();
// display error if file name invalid
if ( fileName == null || fileName.getName().equals( "" ) )
JOptionPane.showMessageDialog( this, "Invalid File Name",
"Invalid File Name", JOptionPane.ERROR_MESSAGE );
else {
// open file
try {
input = new ObjectInputStream(
new FileInputStream( fileName ) );
openButton.setEnabled( false );
nextButton.setEnabled( true );
// process exceptions opening file
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error Opening File",
"Error", JOptionPane.ERROR_MESSAGE );
} // end else
} // end method openFile
// read record from file
public void readRecord()
Employee record;
// input the values from the file
try {
record = ( Employee ) input.readObject();
employeeList[count++]= record;
store.add(record);
store.displayAll();
System.out.println("Count is " + store.getCount());
// create array of Strings to display in GUI
String values[] = {
String.valueOf(record.getName()),
String.valueOf(record.getGender()),
String.valueOf( record.getDateOfBirth()),
String.valueOf( record.getID()),
String.valueOf( record.getStartDate()),
String.valueOf( record.getSalary()),
String.valueOf( record.getAddress()),
String.valueOf( record.getNatInsNo()),
String.valueOf( record.getPhone())
// i added all those bits above split onto one line to look neater
// display record contents
userInterface.setFieldValues( values );
// display message when end-of-file reached
catch ( EOFException endOfFileException ) {
nextButton.setEnabled( false );
nextRecordButton.setEnabled( true );
JOptionPane.showMessageDialog( this, "No more records in file",
"End of File", JOptionPane.ERROR_MESSAGE );
// display error message if class is not found
catch ( ClassNotFoundException classNotFoundException ) {
JOptionPane.showMessageDialog( this, "Unable to create object",
"Class Not Found", JOptionPane.ERROR_MESSAGE );
// display error message if cannot read due to problem with file
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this,
"Error during read from file",
"Read Error", JOptionPane.ERROR_MESSAGE );
} // end method readRecord
private void getNextRecord()
Employee record = employeeList[next++%count];//cycles throught accounts
//create aray of string to display in GUI
String values[] = {String.valueOf(record.getName()),
String.valueOf(record.getGender()),
String.valueOf( record.getStartDate() ), String.valueOf( record.getAddress()),
String.valueOf( record.getNatInsNo()),
String.valueOf( record.getPhone()),
String.valueOf( record.getID() ),
String.valueOf( record.getDateOfBirth() ),
String.valueOf( record.getSalary() ) };
//display record contents
userInterface.setFieldValues(values);
//display record contents
// again i nicked these write them on one line
// close file and terminate application
private void closeFile()
// close file and exit
try {
input.close();
System.exit( 0 );
// process exception while closing file
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error closing file",
"Error", JOptionPane.ERROR_MESSAGE );
System.exit( 1 );
} // end method closeFile
public static void main( String args[] )
new ReadSequentialFile();
} // end class ReadSequentialFileI tired putting both codes together and got this, it runs but does not do what i want can anybody help me put the above two codes together as one
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import bank.BankUI;
import bank.*;
public class togehter extends JFrame {
private ObjectOutputStream output;
private BankUI userInterface;
private JButton enterButton, openButton;
//private Store store; wont work if i un comment this
private Employee record;
// from read
private ObjectInputStream input;
private JButton nextButton, openButton2, nextRecordButton ;
private Store store = new Store(100);
private Employee employeeList[] = new Employee[100];
private int count = 0, next = 0;
// end of read
// set up GUI
public togehter()
super( "Creating a Sequential File of Objects" ); // appears in top of gui
// create instance of reusable user interface
userInterface = new BankUI( 9 ); // textfields
getContentPane().add( userInterface, BorderLayout.CENTER );
// configure button doTask1 for use in this program
openButton = userInterface.getDoTask1Button();
openButton.setText( "Save to file" );
// register listener to call openFile when button pressed
openButton.addActionListener(
// anonymous inner class to handle openButton event
new ActionListener() {
// call openFile when button pressed
public void actionPerformed( ActionEvent event )
openFile();
} // end anonymous inner class
); // end call to addActionListener
// from read
// get reference to generic task button doTask1 from BankUI
openButton2 = userInterface.getDoTask1Button();
openButton2.setText( "Open File" );
// register listener to call openFile when button pressed
openButton2.addActionListener(
// anonymous inner class to handle openButton2 event
new ActionListener() {
// close file and terminate application
public void actionPerformed( ActionEvent event )
openFile();
} // end anonymous inner class
); // end call to addActionListener
// from read end
// from read
// register window listener for window closing event
addWindowListener(
// anonymous inner class to handle windowClosing event
new WindowAdapter() {
// close file and terminate application
public void windowClosing( WindowEvent event )
if ( input != null )
closeFile();
System.exit( 0 );
} // end anonymous inner class
); // end call to addWindowListener
//from read end
// from read
// get reference to generic task button doTask2 from BankUI
nextButton = userInterface.getDoTask2Button();
nextButton.setText( "Next Record" );
nextButton.setEnabled( false );
// register listener to call readRecord when button pressed
nextButton.addActionListener(
// anonymous inner class to handle nextRecord event
new ActionListener() {
// call readRecord when user clicks nextRecord
public void actionPerformed( ActionEvent event )
readRecord();
} // end anonymous inner class
); // end call to addActionListener
//get reference to generic task button do Task3 from BankUI
// get reference to generic task button doTask3 from BankUI
nextRecordButton = userInterface.getDoTask3Button();
nextRecordButton.setText( "Get Next Record" );
nextRecordButton.setEnabled( false );
// register listener to call readRecord when button pressed
nextRecordButton.addActionListener(
// anonymous inner class to handle nextRecord event
new ActionListener() {
// call readRecord when user clicks nextRecord
public void actionPerformed( ActionEvent event )
getNextRecord();
} // end anonymous inner class
); // end call to addActionListener
// from read end
// configure button doTask2 for use in this program
enterButton = userInterface.getDoTask2Button();
enterButton.setText( "Save to file..." );
enterButton.setEnabled( false ); // disable button
// register listener to call addRecord when button pressed
enterButton.addActionListener(
// anonymous inner class to handle enterButton event
new ActionListener() {
// call addRecord when button pressed
public void actionPerformed( ActionEvent event )
addRecord();
} // end anonymous inner class
); // end call to addActionListener
// register window listener to handle window closing event
addWindowListener(
// anonymous inner class to handle windowClosing event
new WindowAdapter() {
// add current record in GUI to file, then close file
public void windowClosing( WindowEvent event )
if ( output != null )
addRecord();
closeFile();
} // end anonymous inner class
); // end call to addWindowListener
setSize( 600, 500 );
setVisible( true );
store = new Store(100);
} // end CreateSequentialFile constructor
// allow user to specify file name
private void openFile()
// display file dialog, so user can choose file to open
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode( JFileChooser.FILES_ONLY );
int result = fileChooser.showSaveDialog( this );
// if user clicked Cancel button on dialog, return
if ( result == JFileChooser.CANCEL_OPTION )
return;
File fileName = fileChooser.getSelectedFile(); // get selected file
// display error if invalid
if ( fileName == null || fileName.getName().equals( "" ) )
JOptionPane.showMessageDialog( this, "Invalid File Name",
"Invalid File Name", JOptionPane.ERROR_MESSAGE );
else {
// open file
try {
output = new ObjectOutputStream(
new FileOutputStream( fileName ) );
openButton.setEnabled( false );
enterButton.setEnabled( true );
// process exceptions from opening file
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error Opening File",
"Error", JOptionPane.ERROR_MESSAGE );
} // end else
} // end method openFile
// from read
public void readRecord()
Employee record;
// input the values from the file
try {
record = ( Employee ) input.readObject();
employeeList[count++]= record;
store.add(record);/////////ADDS record to Store
store.displayAll();
System.out.println("Count is " + store.getCount());
// create array of Strings to display in GUI
String values[] = {
String.valueOf(record.getName()),
String.valueOf(record.getGender()),
String.valueOf( record.getDateOfBirth()),
String.valueOf( record.getID()),
String.valueOf( record.getStartDate()),
String.valueOf( record.getSalary()),
String.valueOf( record.getAddress()),
String.valueOf( record.getNatInsNo()),
String.valueOf( record.getPhone())
// display record contents
userInterface.setFieldValues( values );
// display message when end-of-file reached
catch ( EOFException endOfFileException ) {
nextButton.setEnabled( false );
nextRecordButton.setEnabled( true );
JOptionPane.showMessageDialog( this, "No more records in file",
"End of File", JOptionPane.ERROR_MESSAGE );
// display error message if class is not found
catch ( ClassNotFoundException classNotFoundException ) {
JOptionPane.showMessageDialog( this, "Unable to create object",
"Class Not Found", JOptionPane.ERROR_MESSAGE );
// display error message if cannot read due to problem with file
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this,
"Error during read from file",
"Read Error", JOptionPane.ERROR_MESSAGE );
} // end method readRecord
//from read end
// from read
private void getNextRecord()
Employee record = employeeList[next++%count];//cycles throught accounts
//create aray of string to display in GUI
String values[] = {String.valueOf(record.getName()),
String.valueOf(record.getGender()),
String.valueOf( record.getStartDate() ), String.valueOf( record.getAddress()),
String.valueOf( record.getNatInsNo()),
String.valueOf( record.getPhone()),
String.valueOf( record.getID() ),
String.valueOf( record.getDateOfBirth() ),
String.valueOf( record.getSalary() ) };
//display record contents
userInterface.setFieldValues(values);
//display record contents
// from read end
// close file and terminate application
private void closeFile()
// close file
try {
int storeSize = store.getCount();
for (int i = 0; i<storeSize;i++)
output.writeObject(store.elementAt(i));
output.close();
input.close(); // from read
System.exit( 0 );
// process exceptions from closing file
catch( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error closing file",
"Error", JOptionPane.ERROR_MESSAGE );
System.exit( 1 );
} // end method closeFile
// add record to file
public void addRecord()
int employeeNumber = 0;
String fieldValues[] = userInterface.getFieldValues();
// if account field value is not empty
if ( ! fieldValues[ BankUI.IDNUMBER ].equals( "" ) ) {
// output values to file
try {
employeeNumber = Integer.parseInt(
fieldValues[ BankUI.IDNUMBER ] );
String dob = fieldValues[ BankUI.DOB ];
String[] dateofBirth = dob.split ("-"); // what used to put between number chnage to /
String sDate = fieldValues[ BankUI.START ];
String[] startDate = sDate.split ("-");
String sex = fieldValues[ BankUI.GENDER ];
char gender = (sex.charAt(0)); // check if m or f prob check in employee
if ( employeeNumber >= 0 ) {
record = new Employee(
fieldValues[ BankUI.NAME ],
gender,
new Date( Integer.parseInt(dateofBirth[0]),
Integer.parseInt(dateofBirth[1]),
Integer.parseInt(dateofBirth[2])),
fieldValues[ BankUI.ADDRESS ],
fieldValues[ BankUI.NATINTNO ],
fieldValues[ BankUI.PHONE ],
fieldValues[ BankUI.IDNUMBER ],
new Date( Integer.parseInt(startDate[0]),
Integer.parseInt(startDate[1]),
Integer.parseInt(startDate[2])),
Float.parseFloat( fieldValues[ BankUI.SALARY ] ));
if (!store.isFull())
store.add(record);
else
JOptionPane.showMessageDialog( this, "The Store is full you cannot add\n"+
"anymore employees. \nPlease Save Current File and Create a New File." );
System.out.println("Store full");
store.displayAll();
System.out.println("Count is " + store.getCount());
output.flush();
else
JOptionPane.showMessageDialog( this,
"Account number must be greater than 0",
"Bad account number", JOptionPane.ERROR_MESSAGE );
// clear textfields
userInterface.clearFields();
} // end try
// process invalid account number or balance format
catch ( NumberFormatException formatException ) {
JOptionPane.showMessageDialog( this,
"Bad ID number, Date or Salary", "Invalid Number Format",
JOptionPane.ERROR_MESSAGE );
// process exceptions from file output
catch ( ArrayIndexOutOfBoundsException ArrayException ) {
JOptionPane.showMessageDialog( this, "Error with Start Date or Date of Birth",
"IO Exception", JOptionPane.ERROR_MESSAGE );
// process exceptions from file output
catch ( IOException ioException ) {
JOptionPane.showMessageDialog( this, "Error writing to file",
"IO Exception", JOptionPane.ERROR_MESSAGE );
closeFile();
} // end if
} // end method addRecord
public static void main( String args[] )
new togehter();
} // end class CreateSequentialFileI GOT IT WORKING BUT THERE WAS A WEIRD ERROR I GET WHEN TRYING TO READ A FILE I JUST WROTE THE THREAD FOR THAT CAN BE FOUND:
http://forum.java.sun.com/thread.jspa?threadID=5147209
Message was edited by:
ajrobson -
Need help with these error.
Hi,
While trying to boot the app server i encounter these error. I notice it when i view the TUXLOG file:
114559.ehr.nc.com.my!PSADMIN.5476: Begin attempt on domain enchrms9
114601.ehr.nc.com.my!tmadmin.7308.3086382784.-2: TMADMIN_CAT:1330: INFO: Command: boot -A
114603.ehr.nc.com.my!tmboot.7316.3086133456.-2: 05-12-2009: Tuxedo Version 9.1, 32-bit
114603.ehr.nc.com.my!tmboot.7316.3086133456.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 60 seconds
114603.ehr.nc.com.my!tmboot.7316.3086133456.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
114604.ehr.nc.com.my!BBL.25165.3086620352.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server WATCH/1
114605.ehr.nc.com.my!BBL.7321.3085944512.0: 05-12-2009: Tuxedo Version 9.1, 32-bit, Patch Level 036
114605.ehr.nc.com.my!BBL.7321.3085944512.0: LIBTUX_CAT:262: INFO: Standard main starting
114607.ehr.nc.com.my!tmboot.7328.3086420176.-2: 05-12-2009: Tuxedo Version 9.1, 32-bit
114607.ehr.nc.com.my!tmboot.7328.3086420176.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 60 seconds
114607.ehr.nc.com.my!tmboot.7328.3086420176.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
114607.ehr.nc.com.my!PSWATCHSRV.7329.3086382784.-2: 05-12-2009: Tuxedo Version 9.1, 32-bit
114607.ehr.nc.com.my!PSWATCHSRV.7329.3086382784.-2: LIBTUX_CAT:262: INFO: Standard main starting
114607.ehr.nc.com.my!PSAPPSRV.7330.3086760688.0: 05-12-2009: Tuxedo Version 9.1, 32-bit
114607.ehr.nc.com.my!PSAPPSRV.7330.3086760688.0: LIBTUX_CAT:262: INFO: Standard main starting
114614.ehr.nc.com.my!BBL.25165.3086620352.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server WATCH/1
114614.ehr.nc.com.my!cleanupsrv.7345.3086157504.-2: 05-12-2009: Tuxedo Version 9.1, 32-bit
*114614.ehr.nc.com.my!cleanupsrv.7345.3086157504.-2: server WATCH/1: CMDTUX_CAT:536: ERROR: Server to be cleaned up is still running.*
*114614.ehr.nc.com.my!cleanupsrv.7345.3086157504.-2: CMDTUX_CAT:557: ERROR: Automatic Server Recovery failure;*
* Server processes require manual intervention.*
114624.ehr.nc.com.my!BBL.25165.3086620352.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server WATCH/1
114624.ehr.nc.com.my!cleanupsrv.7410.3086935744.-2: 05-12-2009: Tuxedo Version 9.1, 32-bit
114624.ehr.nc.com.my!cleanupsrv.7410.3086935744.-2: server WATCH/1: CMDTUX_CAT:536: ERROR: Server to be cleaned up is still running.
I need some further explanation on these 2 error.
Thankshi Sujai,
204036.psweb.tf.net!BBL.10485.3086112992.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server APPSRV/1
204036.psweb.tf.net!BBL.10485.3086112992.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server WATCH/1
204036.psweb.tf.net!BBL.10485.3086112992.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server APPSRV/2
204036.psweb.tf.net!BBL.10485.3086112992.0: LIBTUX_CAT:550: WARN: Cleaning up restartable server APPSRV/3
204036.psweb.tf.net!cleanupsrv.6640.3086874304.-2: 03-28-2011: Tuxedo Version 9.1, 32-bit
204036.psweb.tf.net!cleanupsrv.6640.3086874304.-2: server APPSRV/1: CMDTUX_CAT:536: ERROR: Server to be cleaned up is still running.
204036.psweb.tf.net!cleanupsrv.6640.3086874304.-2: CMDTUX_CAT:557: ERROR: Automatic Server Recovery failure;
Server processes require manual intervention.
This error is there a way around it? -
Need help in these topics. Or links please
Hi guys,
Could you tell me a resource where I can find information on these.
1. Programs written in java to manipulate on String functionaliy like String concat, substring, length and other string methods without using String's Builtin functions.
2. Java resource for Searching and Sorting AlgorithmsI shall take a look at Source code that comes with JDK....
I have implemented something for String Concatenation ... I hope its correct....
public class StringConcatEx {
public StringConcatEx() { }
public char[] concat(char[] x, char[] y) {
boolean done;
char [] ret;
int len = 0;
len += x.length;
len += y.length;
ret = new char[len];
for(int i= 0; i<x.length; i++ ){
ret[i] = x;
for(int i= 0; i<y.length; i++ ){
ret[x.length + i] = y[i];
return ret;
public static void main(String [] args) {
char charArray[];
StringConcatEx te = new StringConcatEx();
charArray = te.concat("foo".toCharArray(), "bar".toCharArray());
System.out.println("The Concatenated String is = '" + (new String(charArray)) + "'"); -
I need help on these issue (watermarking and steganography)
Hi guys, my lecturer did assign me a an assignment. She asked to insert the information about the production's company,expired date, and the approval message into a logo (to avoid fraud lisence). She's giving me option whether to use steganography or watermarking. From my reading (i'm such newbie in this field) one of the best way in stegano and watermarking is patchwork algorithm. So I did search on patchwork algorithm.
The thing that make me so confuse is when I did the searching in google for that patchwork algorithm, the result will be in patchwork algorithm in waterwarking. There's no such details for patchwork algorithm in stegano. There's some in stegano but those just touch on the theory only. So do u guys know resource that I could refer about patchwork algorithm in stegano? I mean very detail experiments or journal or even sourcecode..
Well, it's fine enough if I have to do it in watermarking. But there's is one issue. When I'm hiding the info, can I extract the info by using a system only (like stegano) without using any hardware device? If it so, is there any sample source code for it? Please help me...Thanks in advance guys!What is the connection to LabVIEW?
LabVIEW Champion . Do more with less code and in less time . -
Need help getting these methods to work
this program consists three seperate classes. i have two of the three working, i just can't figure out this one. here is my code, and the pseudo code for the methods. any help would be greatly appreciated. i am getting the following 18 errors
CheckingAccountsTest.java:35: getAccountType(java.lang.String) in CheckingAccount cannot be applied to ()
if(myFields[indexForAccountType].equals(CheckingAccount.getAccountType())){ //A-1-2-10
^
CheckingAccountsTest.java:45: cannot find symbol
symbol : constructor CheckingAccountPlus(java.lang.String,java.lang.String,java.lang.String,double)
location: class CheckingAccountPlus
CheckingAccountPlus currentAccount = new CheckingAccountPlus(myFields[indexForAccountId], //A-1-2-17 THROUGH A-1-2-20
^
CheckingAccountsTest.java:72: getAccountId(java.lang.String) in CheckingAccount cannot be applied to ()
currentAccount.getAccountId().equals(myFields[indexForAccountId]); //A-1-3-06
^
CheckingAccountsTest.java:124: cannot find symbol
symbol : method makeDeposit(double)
location: class CheckingAccountPlus
currentAccount.makeDeposit(amount); //A-1-6-02
^
CheckingAccountsTest.java:161: getAccountId(java.lang.String) in CheckingAccount cannot be applied to ()
currentAccount, currentAccount.getAccountId(), CheckingAccount.getAccountType(), currentAccount.getBalance());
^
CheckingAccountsTest.java:161: getAccountType(java.lang.String) in CheckingAccount cannot be applied to ()
currentAccount, currentAccount.getAccountId(), CheckingAccount.getAccountType(), currentAccount.getBalance());
^
CheckingAccountsTest.java:167: non-static method getAccountType() cannot be referenced from a static context
currentAccount, currentAccount.getAccountId(), CheckingAccountPlus.getAccountType(), currentAccount.getBalance());
^
CheckingAccountsTest.java:171: getAccountId(java.lang.String) in CheckingAccount cannot be applied to ()
System.out.printf("Account Totals", currentAccount.getAccountId(), CheckingAccount.getAccountType(), //A-1-11-01
^
CheckingAccountsTest.java:171: getAccountType(java.lang.String) in CheckingAccount cannot be applied to ()
System.out.printf("Account Totals", currentAccount.getAccountId(), CheckingAccount.getAccountType(), //A-1-11-01
^
CheckingAccountsTest.java:172: getBeginningBalance(double) in CheckingAccount cannot be applied to ()
currentAccount.getBeginningBalance(), currentAccount.getDeposits(), currentAccount.getWithdrawals(), //A-1-11-02
^
CheckingAccountsTest.java:172: getDeposits(double) in CheckingAccount cannot be applied to ()
currentAccount.getBeginningBalance(), currentAccount.getDeposits(), currentAccount.getWithdrawals(), //A-1-11-02
^
CheckingAccountsTest.java:172: getWithdrawals(double) in CheckingAccount cannot be applied to ()
currentAccount.getBeginningBalance(), currentAccount.getDeposits(), currentAccount.getWithdrawals(), //A-1-11-02
^
CheckingAccountsTest.java:173: getFees(double) in CheckingAccount cannot be applied to ()
currentAccount.getFees(), currentAccount.getBalance(), currentAccount.getOverdrafts(), " *"); //A-1-11-03 THROUGH A-1-11-04
^
CheckingAccountsTest.java:173: getOverdrafts(double) in CheckingAccount cannot be applied to ()
currentAccount.getFees(), currentAccount.getBalance(), currentAccount.getOverdrafts(), " *"); //A-1-11-03 THROUGH A-1-11-04
^
CheckingAccountsTest.java:178: getAccountType(java.lang.String) in CheckingAccount cannot be applied to ()
System.out.printf("Account Totals", currentAccount.getAccountId(), CheckingAccount.getAccountType(), //A-1-12-01
^
CheckingAccountsTest.java:179: cannot find symbol
symbol : method getBeginningBalance()
location: class CheckingAccountPlus
currentAccount.getBeginningBalance(), currentAccount.getDeposits(), currentAccount.getWithdrawals(), //A-1-12-02
^
CheckingAccountsTest.java:179: cannot find symbol
symbol : method getDeposits()
location: class CheckingAccountPlus
currentAccount.getBeginningBalance(), currentAccount.getDeposits(), currentAccount.getWithdrawals(), //A-1-12-02
^
CheckingAccountsTest.java:180: cannot find symbol
symbol : method getSumOfCreditCardAdvances()
location: class CheckingAccountPlus
currentAccount.getBalance(), currentAccount.getSumOfCreditCardAdvances(), " *"); //A-1-12-03 THROUGH A-1-12-04
^
18 errors
Process completed.
public class CheckingAccountsTest
private static final int indexForAccountId = 0;
private static final int indexForAccountType = 2;
private static final int indexForBalance = 5;
private static final int indexForDepositAmount = 2;
private static final int indexForFirstName = 3;
private static final int indexForLastName = 4;
private static final int indexForRecordType = 1;
private static final int indexForWithdrawalAmount = 2;
private static final String recordTypeForDeposit = "CKD";
private static double sumOfBeginningBalances = 0.0;
private static double sumOfCreditCardAdvances = 0.0;
private static double sumOfDeposits = 0.0;
private static double sumOfEndingBalances = 0.0;
private static double sumOfFees = 0.0;
private static double sumOfOverdrafts = 0.0;
private static double sumOfWithdrawals = 0.0;
public static void main(String args[])
MyCsvFile myFile = new MyCsvFile("monthlyBankTransactions,v05.txt"); //A-1-2-01 THRU A-1-2-02
System.out.println("\nBig Bank: Monthly Checking Account Activity\n"); //A-1-2-04
System.out.println("----------- Account ----------- Beginning\t\t With-\t\t Ending\tOver-\tCredit Cd"); //A-1-2-05
System.out.println(" Name\t Id Type\t Balance + Deposit - drawal - Fee = Balance\tdraft\t Advance\n"); //A-1-2-06
myFile.readARecord(); //A-1-2-07
while(myFile.getEofFound() == false) //A-1-2-08
String []myFields = myFile.getCsvRecordFieldArray();//A-1-2-09
if(myFields[indexForAccountType].equals(CheckingAccount.getAccountType())){ //A-1-2-10
CheckingAccount currentAccount = new CheckingAccount(myFields[indexForAccountId], //A-1-2-11 THROUGH A-1-2-12
myFields[indexForFirstName], myFields[indexForLastName],
Double.parseDouble(myFields[indexForBalance])); //A-1-2-13
handleAccount(currentAccount, myFile, myFields); //A-1-2-14
currentAccount = null;// A-1-2-15
else//A-1-2-16
CheckingAccountPlus currentAccount = new CheckingAccountPlus(myFields[indexForAccountId], //A-1-2-17 THROUGH A-1-2-20
myFields[indexForFirstName], myFields[indexForLastName], Double.parseDouble(myFields[indexForBalance]));
handleAccount(currentAccount, myFile, myFields);
currentAccount = null; //A-1-2-21
}//end if A-1-2-22
}//end while A-1-2-23
System.out.printf("Report Totals", sumOfBeginningBalances,sumOfDeposits, //A-1-2-24
sumOfWithdrawals, sumOfFees, sumOfEndingBalances, sumOfOverdrafts, sumOfCreditCardAdvances, "**"); //A-1-2-25
System.out.printf("The information in the above report is from the 17 records in the following file:",
myFile.getCountOfRecords()); //A-1-2-26
System.out.printf("Path to file:", myFile.getFilePath()); //A-1-2-27
System.out.printf("Name of file:", myFile.getFileName()); //A-1-2-28
System.out.println("\nEnd of program"); //A-1-2-29
}// end main method
public static void handleAccount(CheckingAccount currentAccount, MyCsvFile myFile, String []myFields)
sumOfBeginningBalances += currentAccount.getBalance(); //A-1-3-01
printBeginningBalance(currentAccount); // A-1-3-02
myFile.readARecord(); //A-1-3-03
myFields = myFile.getCsvRecordFieldArray(); //A-1-3-04
while (myFile.getEofFound() == false) //A-1-3-05
currentAccount.getAccountId().equals(myFields[indexForAccountId]); //A-1-3-06
if(myFields[indexForRecordType].equals(recordTypeForDeposit)){ //A-1-3-07
handleDeposit(currentAccount, Double.parseDouble(myFields[indexForDepositAmount])); //A-1-3-08 THROUGH A-1-3-09
else //A-1-3-10
handleWithdrawal(currentAccount,Double.parseDouble(myFields[indexForWithdrawalAmount])); //A-1-3-11 THROUGH A-1-3-12
}//end if //A-1-3-13
myFile.readARecord();//A-1-3-14
myFields = myFile.getCsvRecordFieldArray(); //A-1-3-15 THROUGH A-1-3-16
}//end while //A-1-3-17
sumOfEndingBalances += currentAccount.getBalance();//A-1-3-18
printEndingBalance(currentAccount); //A-1-3-19
public static void handleAccount(CheckingAccountPlus currentAccount, MyCsvFile myFile, String [] myFields)
sumOfBeginningBalances += currentAccount.getBalance(); //A-1-4-01
printBeginningBalance(currentAccount); //A-1-4-02
myFile.readARecord(); //A-1-4-03
myFields = myFile.getCsvRecordFieldArray(); //A-1-4-04
while (myFile.getEofFound()==false) //A-1-4-05
currentAccount.getAccountId().equals (myFields[indexForAccountId]); //A-1-4-06
if(myFields[indexForRecordType].equals(recordTypeForDeposit)){ //A-1-4-07
handleDeposit(currentAccount, Double.parseDouble(myFields[indexForDepositAmount])); //A-1-4-08 THROUGH //A-1-4-09
else //A-1-4-10
handleWithdrawal(currentAccount,Double.parseDouble(myFields[indexForWithdrawalAmount])); //A-1-4-11 THROUGH A-1-4-12
}//end if A-1-4-13
myFile.readARecord(); //A-1-4-14
myFields = myFile.getCsvRecordFieldArray(); //A-1-4-15 THROUGH A-1-4-16
}//end while A-1-4-17
sumOfEndingBalances += currentAccount.getBalance(); //A-1-4-18
printEndingBalance(currentAccount); //A-1-4-19
private static void handleDeposit(CheckingAccount currentAccount, double amount)
sumOfDeposits += amount; //A-1-5-01
currentAccount.makeDeposit(amount); //A-1-5-02
System.out.printf("$,%.2f", amount); //A-1-5-03
private static void handleDeposit(CheckingAccountPlus currentAccount, double amount)
sumOfDeposits += amount;//A-1-6-01
currentAccount.makeDeposit(amount); //A-1-6-02
System.out.printf("$,%.2f", amount); //A-1-6-03
private static void handleWithdrawal(CheckingAccount currentAccount, double amount)
if (currentAccount.makeWithdrawal(amount) == true){ //A-1-7-01
sumOfWithdrawals += amount; //A-1-7-02
System.out.printf("$,%.2f", amount); //A-1-7-03
}else{ //A-1-7-04
double overdraftFee = currentAccount.getOverdraftFee(); //A-1-7-05
sumOfFees += overdraftFee; //A-1-7-06
sumOfOverdrafts += amount; //A-1-7-07
System.out.printf("$,%.2f",overdraftFee, amount); //A-1-7-08
}//end if A-1-7-09
private static void handleWithdrawal(CheckingAccountPlus currentAccount, double amount)
if (currentAccount.makeWithdrawal(amount) == true){ //A-1-8-01
sumOfWithdrawals += amount; //A-1-8-02
System.out.printf("$,%.2f",amount); //A-1-8-03
}else{ //A-1-8-04
double creditCardAdvance = currentAccount.getCreditCardAdvance(); //A-1-8-05 THROUGH A-1-8-06
sumOfCreditCardAdvances += creditCardAdvance; //A-1-8-07
sumOfWithdrawals += currentAccount.getActualWithdrawal(); //A-1-8-08
System.out.printf("$,%.2f",currentAccount.getActualWithdrawal(),creditCardAdvance); //A-1-8-09
}//end if //A-1-8-10
private static void printBeginningBalance(CheckingAccount currentAccount)
System.out.printf("", //A-1-9-01 THROUGH A-1-9-02
currentAccount, currentAccount.getAccountId(), CheckingAccount.getAccountType(), currentAccount.getBalance());
private static void printBeginningBalance(CheckingAccountPlus currentAccount)
System.out.printf("", //A-1-10-01 TROUGH A-1-10-02
currentAccount, currentAccount.getAccountId(), CheckingAccountPlus.getAccountType(), currentAccount.getBalance());
private static void printEndingBalance(CheckingAccount currentAccount)
System.out.printf("Account Totals", currentAccount.getAccountId(), CheckingAccount.getAccountType(), //A-1-11-01
currentAccount.getBeginningBalance(), currentAccount.getDeposits(), currentAccount.getWithdrawals(), //A-1-11-02
currentAccount.getFees(), currentAccount.getBalance(), currentAccount.getOverdrafts(), " *"); //A-1-11-03 THROUGH A-1-11-04
private static void printEndingBalance(CheckingAccountPlus currentAccount)
System.out.printf("Account Totals", currentAccount.getAccountId(), CheckingAccount.getAccountType(), //A-1-12-01
currentAccount.getBeginningBalance(), currentAccount.getDeposits(), currentAccount.getWithdrawals(), //A-1-12-02
currentAccount.getBalance(), currentAccount.getSumOfCreditCardAdvances(), " *"); //A-1-12-03 THROUGH A-1-12-04
}PSEUDO CODE FOR ALL METHODS
This public static method has no return value and has one parameter of type String named args[ ], an array
A-1-2-01) INSTANTIATE a local variable named myFile of class MyCsvFile, passing a single String argument for the CSV filename:
A-1-2-02) ?monthlyBankTransactions,v05.txt?
A-1-2-03) DISPLAY the task / programmer identification line
A-1-2-04) DISPLAY the ?Big Bank: Monthly Checking Account Activity? title line
A-1-2-05) DISPLAY the first column heading line: ?---------- Account ----------??
A-1-2-06) DISPLAY the second column heading line: ? Name Id??
A-1-2-07) Get 1st record from CSV file using method readARecord: MyCsvFile class: myFile.readARecord()
A-1-2-08) WHILE (myFile.getEofFound() IS FALSE)
A-1-2-09) DEFINE a String Array named myFields, and ASSIGN it the value myFile.getCsvRecordFieldArray()
A-1-2-10) IF (myFields[indexForAccountType].equals(CheckingAccount.getAccountType()))
A-1-2-11) INSTANTIATE a local variable named currentAccount of class CheckingAccount, passing the following arguments:
A-1-2-12) myFields[indexForAccountId], myFields[indexForFirstName], myFields[indexForLastName],
A-1-2-13) Double.parseDouble(myFields[indexForBalance])
A-1-2-14) CALL method handleAccount of this class, passing the following arguments: currentAccount, myFile, myFields
A-1-2-15) ASSIGN null TO currentAccount
A-1-2-16) ELSE
A-1-2-17) INSTANTIATE a local variable named currentAccount of class CheckingAccountPlus, passing the following arguments:
A-1-2-18) myFields[indexForAccountId], myFields[indexForFirstName], myFields[indexForLastName],
A-1-2-19) Double.parseDouble(myFields[indexForBalance])
A-1-2-20) CALL method handleAccount of this class, passing the following arguments: currentAccount, myFile, myFields
A-1-2-21) ASSIGN null TO currentAccount
A-1-2-22) END IF
A-1-2-23) END WHILE
A-1-2-24) DISPLAY the report-total line using the following arguments: ?Report Totals?, sumOfBeginningBalances, sumOfDeposits,
A-1-2-25) sumOfWithdrawals, sumOfFees, sumOfEndingBalances, sumOfOverdrafts, sumOfCreditCardAdvances and ?**?
A-1-2-26) DISPLAY the ?The information in the above report? line with the following arguments: myFile.getCountOfRecords()
A-1-2-27) DISPLAY the ?Path to file? line with the following arguments: myFile.getFilePath()
A-1-2-28) DISPLAY the ?Name of file? line with the following arguments: myFile.getFileName()
A-1-2-29) DISPLAY the ?End of program? line
This private static method has no return value, and has three parameters: currentAccount of type CheckingAccount, myFile of type MyCsvFile and myFields of type String array.
A-1-3-01) CALL method currentAcccount.getBalance and ADD its return value to sumOfBeginningBalances
A-1-3-02) CALL method printBeginningBalance with the following argument list: currentAccount
A-1-3-03) CALL method myFile.readARecord, which reads the 1st record after the Balance record (a deposit or withdrawal) for the current customer
A-1-3-04) CALL method myFile.getCsvRecordFieldArray and ASSIGN its return value to myFields, a String array. This makes the values from the
A-1-3-05) fields in the record just read available for access as elements in the myFields string array
A-1-3-06) WHILE (myFile.getEofFound() IS FALSE AND currentAccount.getAccountId().equals(myFields[indexForAccountId]))
A-1-3-07) IF (myFields[indexForRecordType].equals(recordTypeForDeposit))
A-1-3-08) CALL method handleDeposit with the following argument list: currentAccount,
A-1-3-09) Double.parseDouble(myFields[indexForDepositAmount]
A-1-3-10) ELSE
A-1-3-11) CALL method handleWithdrawal with the following argument list: currentAccount,
A-1-3-12) Double.parseDouble(myFields[indexForWithdrawalAmount]
A-1-3-13) END IF
A-1-3-14) CALL method myFile.readARecord, which reads the next deposit or withdrawal record, if any, for this customer
A-1-3-15) CALL method myFile.getCsvRecordFieldArray and ASSIGN its return value to myFields, a String array. This makes the value from the
A-1-3-16) fields in the record just read available for access as elements in the myFields string array
A-1-3-17) END WHILE
A-1-3-18) CALL method currentAcccount.getBalance and ADD its return value to sumOfEndingBalances
A-1-3-19) CALL method printEndingBalance with the following argument list: currentAccount
This private static method has no return value, and has three parameters: currentAccount of type CheckingAccountPlus, myFile of type MyCsvFile and myFields of type String array.
A-1-4-01) CALL method currentAcccount.getBalance and ADD its return value to sumOfBeginningBalances
A-1-4-02) CALL method printBeginningBalance with the following argument list: currentAccount
A-1-4-03) CALL method myFile.readARecord, which reads the 1st record after the Balance record (a deposit or withdrawal) for the current customer
A-1-4-04) CALL method myFile.getCsvRecordFieldArray and ASSIGN its return value to myFields, a String array. This makes the values from the
A-1-4-05) fields in the record just read available for access as elements in the myFields string array
A-1-4-06) WHILE (myFile.getEofFound() IS FALSE AND currentAccount.getAccountId().equals(myFields[indexForAccountId]))
A-1-4-07) IF (myFields[indexForRecordType].equals(recordTypeForDeposit))
A-1-4-08) CALL method handleDeposit with the following argument list: currentAccount,
A-1-4-09) Double.parseDouble(myFields[indexForDepositAmount]
A-1-4-10) ELSE
A-1-4-11) CALL method handleWithdrawal with the following argument list: currentAccount,
A-1-4-12) Double.parseDouble(myFields[indexForWithdrawalAmount]
A-1-4-13) END IF
A-1-4-14) CALL method myFile.readARecord, which reads the next deposit or withdrawal record, if any, for this customer
A-1-4-15) CALL method myFile.getCsvRecordFieldArray and ASSIGN its return value to myFields, a String array. This makes the value from the
A-1-4-16) fields in the record just read available for access as elements in the myFields string array
A-1-4-17) END WHILE
A-1-4-18) CALL method currentAcccount.getBalance and ADD its return value to sumOfEndingBalances
A-1-4-19) CALL method printEndingBalance with the following argument list: currentAccount
This private static method has no return value, and has two parameters: currentAccount of type CheckingAccount and amount of type double.
A-1-5-01) ADD amount TO sumOfDeposits
A-1-5-02) CALL method currentAccount.makeDeposit, passing it the following arguments: amount
A-1-5-03) DISPLAY the deposit line using the following arguments: amount
This private static method has no return value, and has two parameters: currentAccount of type CheckingAccountPlus and amount of type double.
A-1-6-01) ADD amount TO sumOfDeposits
A-1-6-02) CALL method currentAccount.makeDeposit, passing it the following arguments: amount
A-1-6-03) DISPLAY the deposit line using the following arguments: amount
This private static method has no return value, and has two parameters: currentAccount of type CheckingAccount and amount of type double.
A-1-7-01) IF (currentAccount.makeWithdrawal(amount) IS TRUE)
A-1-7-02) ADD amount TO sumOfWithdrawals
A-1-7-03) DISPLAY the withdrawal line using the following arguments: amount
A-1-7-04) ELSE
A-1-7-05) DEFINE variable overdraftFee of type double and ASSIGN it the value returned from a call of method currentAccount.getOvedraftFee
A-1-7-06) ADD overdraftFee TO sumOfFees
A-1-7-07) ADD amount TO sumOfOverdrafts
A-1-7-08) DISPLAY the overdraft line using the following arguments: overdraftFee, amount
A-1-7-09) END IF
This private static method has no return value, and has two parameters: currentAccount of type CheckingAccountPlus and amount of type double.
A-1-8-01) IF (currentAccount.makeWithdrawal(amount) IS TRUE)
A-1-8-02) ADD amount TO sumOfWithdrawals
A-1-8-03) DISPLAY the withdrawal line using the following arguments: amount
A-1-8-04) ELSE
A-1-8-05) DEFINE variable creditCardAdvance of type double and ASSIGN it the value returned from a call of method
A-1-8-06) currentAccount.getCreditCardAdvance
A-1-8-07) ADD creditCardAdvance TO sumOfCreditCardAdvances
A-1-8-08) ADD currentAccount.getActualWithdrawal() TO sumOfWithdrawals
A-1-8-09) DISPLAY the credit-card-advance line using the following arguments: currentAccount.getActualWithdrawal(),creditCardAdvance
A-1-8-10) END IF
This private static method has no return value, and has one parameter: currentAccount of type CheckingAccount.
A-1-9-01) DISPLAY the beginning balance line using the following arguments: currentAccount , currentAccount.getAccountId(),
A-1-9-02) currentAccount.getAccountType() and currentAccount.getBalance()
This private static method has no return value, and has one parameter: currentAccount of type CheckingAccountPlus.
A-1-10-01) DISPLAY the beginning balance line using the following arguments: currentAccount , currentAccount.getAccountId(),
A-1-10-02) currentAccount.getAccountType() and currentAccount.getBalance()
This private static method has no return value, and has one parameter: currentAccount of type CheckingAccount.
A-1-11-01) DISPLAY the ending balance line using the following arguments: ?Account Totals,? currentAccount.getAccountId(),
A-1-11-02) currentAccount.getAccountType(), currentAccount.getBeginningBalance(), currentAccount.getDeposits(),
A-1-11-03) currentAccount.getWithdrawals(), currentAccount.getFees(), currentAccount.getBalance() and
A-1-11-04) currentAccount.getOverdrafts(), ?? *?You're calling a bunch of methods and constructors with the wrong arguments, or missing arguments. Take the errors one by one, and look at the method you're being told you're calling, and check that the arguments you're using are right
-
I need help with these adobe illustrator questions?
Please help with the following questions. Thanks!!
The keyboard short for selecting the direct selection tool is?
The rectangle that shows the outermost dimensions of any box is called the?
A floating panel can be placed on the panel dock by?
The selection tool is displayed as a black arrow and is used to select, resize, or move an entire item.(true or false)
One way to deselect an object is to click somewhere else on the document (true or false)
A stroke is on the inside of a shape or object (true or false)
The more text framed you use, the better your document. (true or false)
The rectangle frame has a non printing X on it (true or false)
To print preview a document, click on the Save icon on the standard toolbar. (true or false)I'm not sure if it's a good idea to go the route you go now.
You are asking for assistance and – as I understand it – you are just trying to pass a class right now, but you don't know the answers to a lot of pretty basic questions.
What's your purpose?
I – as well as many people here – could answer all your questions. Also, I could provide some misleading hints which could cause serious trouble for you in case you would use them in your exam.
You should go a different route. -
I am having issues with several areas on my iPhone:
1. When I am trying to update my iTunes on my phone from my laptop I have trouble syncing to my iPhone. How do I get my songs from iTunes transfered to my iPhone?
2. I am not able to purchase/download ring tones to my iPhone. Am I able to purchase ringtones?
3. My daughter has an iPhone also, and it appears that we have to share contacts? My phone was populated with her contacts and vice versa. How do I seperate the contacts?If it's an iPhone 4S or earlier, download iTunes 10.6.3. This requires Mac OS X 10.5.8.
If it's an iPhone 5, you need to buy a Mac OS X 10.6 DVD, run the Mac OS X 10.6.8 combo updater, and then install iTunes 11.
(80456) -
1. (e.getX()>~iposx)
->what does ~ means?
2. for(;;)
->will the for() loop works?
3.if(!(e = readFromServer.readLine()).equals("Are You Ready To Start Application?"))
-> in dis like, does it mean if readFromServer.readLine IS NOT EQUAL to Are You Ready To Start Application?" ?
4. if(!target1Destroyed)
-> does dis line means if it is not target1Destroy, it will run?This looks like a teacher's quiz...
(1) http://www.google.com
(2) it takes a minute to test
(3) ... (the ellipsis of doom)
(4) ... (once again) -
NEED HELP? Read this first. Also, NOODZ.
Ok, first, noodz (caution: may not be work/school-safe*).
Now, if you need help, follow these guidelines.
Do your homework first.
Many of the questions that get posted here are directly answered in the Wiki or easily found on Google or through an Arch forum search. The Latest News will sometimes address known issues too. Finally, you can check the bugtracker to see if anyone else has reported the same problem. Do some research before posting to save yourself and others time. Don't just post a problem and expect everyone else to do your work for you. Archers help those who (at least try to) help themselves.
Use an explanatory subject title.
Titles such as "this doesn't work, wtf???" do not help and make people roll their eyes. Try to summarize the problem in the title so someone opening the thread has an idea of what your post is about. This will also increase the chance of someone who can solve your problem finding your thread.
Explain the problem clearly and provide detailed information.
Again, "it's just broken" and similar "descriptions" don't tell anyone anything. Give all the relevant information that you can think of, such as the specific error that you're getting, system information (e.g. soundcards for audio problems, network setup for connection problems), when the problem started and what might have caused it, relevant logs, relevant system configuration files, etc. Include information about anything that you've tried so far to solve the problem. You can also read this extensive guide on getting help.
Be patient and polite.
Sometimes it takes time to get a reply. Do not bump your thread every 3 hours with messages like "come on, help me!!!". Also, don't be rude to people who misunderstand your problem or reply with suggestions that don't work. Instead, politely try to explain your problem more clearly.
Mark the thread as [SOLVED] once you've found a solution.
Once you've found the solution, edit your original post and add "[SOLVED]" to the beginning of the subject title. This way others with similar problems will be able to find the solution faster.
@mods
This is my suggested consolidation and replacement of the following stickies:
http://bbs.archlinux.org/viewtopic.php?id=16152
http://bbs.archlinux.org/viewtopic.php?id=50160
http://bbs.archlinux.org/viewtopic.php?id=50161
*actually, it's a joke in response to Mr. Elendig's comment and it's perfectly worksafe
Last edited by Xyne (2008-11-15 14:25:33)tomk wrote:
Thanks for the suggestion, we'll have a look at it.
Tip for the future - if you want to make effective contributions, it would be better not to include random links to pages that may not be work/school-safe. Whatever merit your suggestion may have has been completely undermined by this unnecessary nonsense, which clearly belongs in the Off-topic area.
Um, it's a joke. If you check the link, you'll find a wikipedia page.
EDIT: The joke is a direct response to Mr. Elendig's post and my reply to it here: http://bbs.archlinux.org/viewtopic.php?id=50161
Last edited by Xyne (2008-11-15 14:12:54) -
Please help 'Translate' These codes from AS2 to AS3 for me
Hi, i need help 'translating' these codes from Action Script 2 to Action Script 3. Please Do it for me:
toc loadText = new LoadVars();
loadText.load("Curie.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
Curie.html = true;
Curie.htmlText = this.Curie;
Please translate it for me, i need it ASAP thanks
KennethThank you for helping me
Kenneth
Date: Thu, 15 Oct 2009 05:49:14 -0600
From: [email protected]
To: [email protected]
Subject: Please help 'Translate' These codes from AS2 to AS3 for me
Take a look at that:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/migration.html
There is a LoadVars section on that.
There is also a tutorial here:
http://www.republicofcode.com/tutorials/flash/as3externaltext/
Cheers,
CaioToOn!
> -
2 issues with my phone need help !!
I am having problems with my app store, when I am downloading an app it is always stuck on 92% that's 1 issue, my second issue is my messages when I send a message it keeps saying sending I don't know why. I need help with these 2 issues Please & Thank You
What phone?
-
on my ipod, how can i unredeem an itunes gift card because i had to do these security questions i forgot the answers to. I NEED HELP!!!!!!!!
Maybe:
How to manage unused iTunes Gift Card and Gift Certificate balances
Have you tried this to try to reset the security questions.
See Kappy's previous discussion.
HT5312 How to recover security...: Apple Support Communities
Contact iTunes by:
Contact iTunes
Maybe you are looking for
-
IPod Classic 120gb resume function
I've recently purchased a 120gb iPod classic. It does something no other iPod I've owned does, and it's driving me nuts and I want to shut it off, but don't know how. If I skip to the next track in a playlist, the next time the song that I skipped co
-
Recommendation for maintaining pricing in CRM when R/3 is also in landscape
Hi, in out context we have already SAP R/3 in the landscape, all the pricing in done in R/3. lot of custom pricing routines are also written in r/3. now we in the process of implementing CRM and plan to do Quotations in CRM and replicate in SAP R/3 .
-
Can't start up past gray screen on iMac G4 flat panel
My iMac G4 flat panel is messed up right now and I'd appreciate any help I can get here. This morning after I realized my internet wasn't working I tried a restart but the restart stalled around the part where it just shows your desktop picture and w
-
Which version of Outlook best?
I am new to Blackberry. I have a Curve 8330 (V-Wrlss). Desktop Manager ver. 4.3.0.17 My question is which version of Outlook works best for calendar synchronization? 2003, 2006 or 2007? Either way, I need to buy the software. I will not be using
-
Is the #{bidings} object accessible during the ADF prepareRender phase ?
Hi everyone. I am using JDeveloper 10.1.3.3 and my application uses ADF/BC-JSf. I want to create a page with a button whose "disabled" property will depend on the value of a view object attribute of the same page. So what I did is I used a backing be