Menu
Question Index
...


Write a program to create a SWIFT Message with the given loan details. The format of the swift message is shown with the examples below. For display purposes new lines are shown as $.

Input (Loan) Output (String)
Sender Reference=895PGT
Related Reference=Loan for bank
Type Of Operation=NEWT89045
Scope Of Operation=PGT895 to PARTYB
Type Of Event=CONF8978
Common Reference=895PGTPARTYB
Party A=State bank of hyderabad$GNT street$Kukatpally$Hyderabad 98359734
Party B=Andhra bank$MG road$Nellore 8845688
Instructing Party=76345762345
:20:895PGT
:21:LOAN FOR BANK
:22A:NEWT89045
:94A:PGT895 TO PARTYB
:22B:CONF8978
:22C:895PGTPARTYB
:82A:STATE BANK OF HYDERABAD
GNT STREET
KUKATPALLY
HYDERABAD 98359734
:87A:ANDHRA BANK
MG ROAD
NELLORE 8845688
:83A:76345762345
Sender Reference=346HMK
Related Reference=null
Type Of Operation=JHJ9080
ScopeOfOperation=346HMK to PARTYB
Type Of Event=CONF8768
Common Reference=346HMKPARTYB
Party A=ING Vysya bank$South zone$Kavali 98359734
Party B=HDFC bank$Beach road$Kavali 346456
Instructing Party=876885685
:20:346HMK
:22A:JHJ9080
:94A:346HMK TO PARTYB
:22B:CONF8768
:22C:346HMKPARTYB
:82A:ING VYSYA BANK
SOUTH ZONE
KAVALI 98359734
:87A:HDFC BANK
BEACH ROAD
KAVALI 346456
:83A:876885685
Sender Reference=235LHJB
Related Reference=Loan for bank
Type Of Operation=776KLJ
Scope Of Operation=null
Type Of Event=CONF7663
Common Reference=235LHJBPARTYB
Party A=Grameena bank$SR Road$Kakinada 568567
Party B=HDFC bank$JK road$Kovvuru 77567
Instructing Party=748458568
:20:235LHJB
:21:LOAN FOR BANK
:22A:776KLJ
:22B:CONF7663
:22C:235LHJBPARTYB
:82A:GRAMEENA BANK
SR ROAD
KAKINADA 568567
:87A:HDFC BANK
JK ROAD
KOVVURU 77567
:83A:748458568
Sender Reference=899IHKL
Related Reference=Loan for bank
Type Of Operation=8766JOJIO
Scope Of Operation=899IHKL to PARTYB
Type Of Event=CONF456
Common Reference=899IHKLPARTYB
Party A=Corporation bank$Chennai$Tamil Nadu 567567
Party B=Bank of India$MG Road$Hyderabad 4578567
Instructing Party=null
:20:899IHKL
:21:LOAN FOR BANK
:22A:8766JOJIO
:94A:899IHKL TO PARTYB
:22B:CONF456
:22C:899IHKLPARTYB
:82A:CORPORATION BANK
CHENNAI
TAMIL NADU 567567
:87A:BANK OF INDIA
MG ROAD
HYDERABAD 4578567

class CreateLoanSWIFTMessage

{    public static void main(String s[])
    {
        Loan input = new Loan();
        input.senderReference = "895PGT";
        input.relatedReference = "Loan for bank";
        input.typeOfOperation = "NEWT89045";
        input.scopeOfOperation = "PGT895 TO PARTYB";
        input.typeOfEvent = "CONF8978";
        input.commonReference = "895PGTPARTB";
        input.partyA = "State bank of hyderabad\nGNT street\nKukatpally\nHyderabad 98359734";
        input.partyB = "Andhra bank\nMG road\nNellore 8845688";
        input.instructingParty = "76345762345";
        String result = createSWIFTLoan(input);
        System.out.println("The SWIFT Message is : \n" + result);

    }


public static String createSWIFTLoan(Loan input) {
//Write code here to create a SWIFT loan message with the given input details
}
}
class Loan {

String senderReference;
String relatedReference;
String typeOfOperation;
String scopeOfOperation;
String typeOfEvent;
String commonReference;
String partyA;
String partyB;
String instructingParty;
}

Doubts

Problems

Topic: Conclusion Of Strings In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App