题目
(1)( ) The first beneficiary may be instead of original applicant.
(2)( ) The credit amount and unit price may be reduced.
(3)( ) The quantity of goods may be decreased.
(4)( ) The shipment and expiry dates and latest date for presentation of documents may be shortened.
(5)( ) The percentage of insurance cover may be increased.
(6)( ) The credit number may be altered.
(7)( ) The original transferable credit allows the first beneficiary to substitute his invoice and draft (s) for those presented by the second beneficiary.
(8)( ) The first beneficiary may request that payment or negotiation to be effected to the second beneficiary (ies) at the place to which the credit has been transferred within the expiry date of the credit.
第1题
importjava.io.*;
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
public class java3
{
public static void main(String[]args)
{
JFrame. frame=new SerialTransferFrame():
frame.setDefaultCloseoperation(JFrame.EXIT
ON_CLOSE);
frame.show();
}
}
class SerialTransferFrame. extends JFrame
{
public SerialTransferFrame()
{
setTitle("java3"):
Container contentPane = getContentPane();
chooser=new JColorChooser();
contentPane.add(chooser,BorderLayout.CEN-
TER);
JPanel panel=new JPanel();
JButton copyButton=new JButton("复制");
panel.add(copyButton);
copyButton.addActionListener(new
ActionListener()
{
public void actionPerformed(ActionEvent event)
{
copy();
}
});
JButton pasteButton=new JButton("粘贴");
panel.add(pasteButton);
pasteButton.addAetionListener(new
ActionListener()
{
public void aetionPerformed(AetionEvent event)
{
paste();
}
});
contentPane.add(panel,BorderLayout.SOUTH);
pack();
}
private void copy()
{
Clipboard clipboard
=Toolkit.getDefaultToolkit().getSystemClip-
board();
int color=chooser.getColor();
SerialSeleetion selection=new SerialSelection
(color);
clipboard.setContents(selection,null);
}
private void paste()
{
Clipboard clipboard
=Toolkit.getDefaultToolkit().getSystemClip-
board();
Transferable contents=clipboard.getContents
(null);
if(contents= =null)return;
try
{
DataFlavor flavor=new DataFlavor(
"application/x-java-serialized-object;class=
java.awt.Color");
if(contents.isDataFlavorSupported(flavor))
{
Color color
=(Color)contents.getTransferData(flavor);
;
}
}
catch(ClassNotFoundException exception)
{
JOptionPane.showMessageDialog(this,excep-
tion);
}
catch(UnsupportedFlavorException exception)
{
JOptionPane.showMessageDialog(this,excep-
tion);
}
catch(IOException exception)
{
JOptionPane.showMessageDialog(this,excep-
tion);
}
}
private JColorChooser chooser;
}
class SerialSelection implements Transferable
{
SerialSelection(Serializable o)
{
obj=o:
}
public DataFlavor[]getTransferDataFlavors()
{
DataFlavor[]flavors=new DataFlavor[2];
Class type=obj.getClass();
String mimeType
="application/x-java-serialized-object;class
="
+type.getName();
try
{
flavors[0]=new DataFlavor(mimeType);
flavors[1]=DataFlavor.stringFlavor;
return flavors;
}
catch(ClassNotFoundExeeption exception)
{
return new DataFlavor[O];
}
}
public boolean isDataFlavorSupported(DataFlavor
flavor)
{
Return
DataFlavor.stringFlavor.equals(flavor)‖"appli-
cation".equals(flavor.getPrimaryType())
&&"x-iava-serialized-object".equals(flavor.
getSubType())
&&flavor.getRepresentationClass().isAssign-
ableFrom(obj.getClass());
}
public void getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException
{
if(! isDataFlavorSupported(flavor))
throw new UnsupportedFlavorException(flaVor);
if(DataFlavor.stringFlavor.equals(flavor))
return obj.toString();
return obj;
}
private Serializable obj;
}
第3题
A transferable L/C __________ a letter of credit that can be redirected at the seller’s request.
A、regards
B、refers to
C、orders
D、transfers
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!