How can I get to the square
/ *
* this program realizes the function of inputting height to calculate standard weight, inputting weight to calculate height
* /
Import Java. AWT. *// Import the related class package, and then use the corresponding AWT GUI class
Import Java. AWT. Event. *// Ditto
public class changedollar extensions frame {/ / defines a class change whose parent is frame (graphical interface)
button B = new button (& quot; Conversion & quot;)// Create a button object B, which is displayed as & quot; Mutual check & quot< br /> Label l1 = new Label(" RMB: & quot;)// Create a label. Display height
label L2 = new label & quot; US dollar & quot;)// Create a label to display weight
double height, weight// Define variables
double x, y// Define variable
textfield TF1 = new textfield (null, 10)// Add the text box
textfield TF2 = new textfield (null, 10)// Add the text box
public changedollar() {/ / class constructor to complete the initialization
Super & quot; Conversion table & quot;)// Create a window titled
setlayout (New flowlayout (flowlayout. Left))// Set the layout
Add (L1)// Put the label in the window
Add (TF1)// Put the text box on the window
Add (L2)// Put the label weight in the window
Add (TF2)// Test is put in the window
Add (b)// Put the button on the window
pack()// Automatically put it in the window and arrange the top components
setvisible (true)// It allows users to see the window
addwindowlistener (New windowadapter() {/ / if you press X, close the window
public void windowclosing (windowevent E) {
system. Exit (0)< br /> }
});< br /> b.addActionListener(new ButtonListener());// Add a button listening function
}
class buttonlistener implements actionlistener {/ / to implement the function operation when clicking button
public void actionperformed (ActionEvent E) {/ / when click calls
if (TF1. Gettext()= Null) {/ / check whether TF1 test is empty
try {/ / take exception
x = double. Parsedouble (TF1. Gettext())// The character is converted to double type
weight = x * 6.82//< br /> tf2.setText("& quot; + weigth);// Display
} catch (numberformatexception Ex) {
TF1. Settext & quot& quot;);// If the input is not a number, set it to blank
}
}
if (TF1. Gettext(). Equals & quot& quot;)== True) {/ / TF1 is empty
y = double. Parsedouble (TF2. Gettext())// Turn the text in TF2 into double
height = Y / 6.82//< br />
tf1.setText("& quot; + heigth);}//
}
}
public static void main (string [] args) {/ / main function, program entry
New changedollar()// Create an object of class change, and call its constructor change (). Display the window
}
}
bus line: Metro Line 4 → Metro Line 2, the whole journey is about 13.0km
1. Take Metro Line 4 from the Civic Center, pass 2 stations, and reach Qianjiang Road Station
2. Take Metro Line 2, pass 7 stations, and reach people's Square Station
230m Citizen Square West bus stop,
passing bus: No.32, 101, 223, k204, N4,
253m Futian Shangri La bus stop,
passing bus: no.b709,
254m Greater China international square north bus stop,
passing bus: no.b709,
262m citizen square east bus stop,
passing bus : no.326, no.m435, no.n3 high speed bus No.18
303m Futian high speed railway station bus stop
passing bus: No.9, no.327, no.b613, no.e18, no.e28, no.m221, no.m413, no.n3, No.4 interval line, No.134, No.58, No.62, No.20 high speed bus
bus line: Metro Line 4 → Metro Line 1, the whole journey is about 6.3km
1. Take Metro Line 4 from the Civic Center, pass 2 stations, reach Jinjiang station
2, walk about 110m, transfer to Metro Line 1
3, take Metro Line 1, pass 3 stations, reach Ding'an Road Station
4, walk about 690m, reach Wushan Square
bus line: Metro Line 9 → Metro Line 7 → No. 528, the whole journey is about 28.4km
1. Walk about 760m from Pudong New Area citizen center to yanggaozhong Road Station
2. Take Metro Line 9, pass 8 stations, and reach Zhaojiabang Road Station
3. Walk about 120m, then transfer to Metro Line 7
4. Take Metro Line 7, pass 12 stations, When you arrive at SHANGDA Road Station
5, walk about 210 meters, when you arrive at Hutai Road Station
6, take bus 528, after 2 stops, you arrive at Dongfang International Trade Station
7, and walk about 400 meters to Dongfang International Trade life square
it is recommended to take 64 seats in the East Gate (1) to the Civic Center,
by 16 stops. 8.5km:
please take a seat at 64 Dongmen (1), Dongmen old street, Renmin bridge, Zhenye building, litchi garden, Honggui building, municipal children's Library (Library), women's and children's Hospital, shengtingyuan Hotel, Huaxin village, flower world (1), Lianhua second village (2), Guanshan Yuemei Art Museum (2), children's Palace (central Book City North), children's hospital Citizen Center
or Dongmen take subway line 1 to the exhibition center, and then transfer line 4 to the citizen center
it is recommended that you search "Shenzhen know it" on the Internet. The first one is to click in and download the free Shenzhen know it software, which is easy to use.
Exit a of civic center subway station can go to greater China International Plaza

