How can I get to Xihu District Sports Center
the distance from the railway station to the sports and sports center is about 35.58 km, the whole journey takes about 118 minutes, passing through 40 stations, a total of one transfer, and the transfer vehicle line is c601 → 5<
the best route from the railway station to the sports and sports center is as follows:
walk 50.0 meters from the railway station to Yanzhou bus station, take c601 Road, pass 17 stops, and get off at Zhicheng international; Walk 282.0 meters to Zhenning automobile repair factory, take No.5 bus, pass 23 stops, and get off at Shandong Polytechnic vocational college; Walk about 894.0 meters to the sports center< Other routes from the railway station to the sports and Sports Center:
Route 2
the distance from the railway station to the sports and sports center is about 40.26 km, and the whole journey takes about 120 minutes. It passes through 41 stations and transfers once in total. The transfer vehicle line is c601 → 36
route 3
it's about 36.7 km from the railway station to the sports and Sports Center, and the whole journey takes about 122 minutes. It passes through 45 stations, and there is a total transfer. The transfer vehicle line is c601 → 21
Route 4
it's about 39.61 km from the railway station to the sports and Sports Center, and the whole journey takes about 136 minutes. It passes through 43 stations, and there are two transfers. The transfer lines are No. C611 → No. c605 → No. 5
route 5
it's about 41.17 km from the railway station to the sports center, and the whole journey takes about 137 minutes. It passes through 37 stations, and there are two transfers. The transfer lines are C611 → B1 → 5.
26 minutes 11.8km 14 traffic lights
taxi about 34 yuan. Route: Xintang Road, Huancheng North Road
Hangzhou east station
from Hangzhou east station to Dongning Road, drive 830m
turn right, enter Dongning Road, drive 970m
turn left, drive 350m
from Dongning road to Xintang Road, turn around and enter Xintang road, Drive 2.2km
turn right, enter Genshan Road, drive 1.0KM
keep ahead left, enter the underground tunnel of Huancheng North Road, drive 2.1km
please go straight, enter Huancheng North Road, drive 1.9km
please go straight, enter Tianmu Mountain Road, drive 1.5km
please go straight, enter Tianmu Mountain Road auxiliary road, Drive 310m
turn left, enter Huanglong Road, drive 580m
Huanglong Sports Center
1. Take Metro Line 1 from Xihu Cultural Square, pass 3 stations, and then arrive at the East Railway Station
2. Walk about 50m, and then transfer to Metro Line 4
3. Take Metro Line 4, pass 6 stations, and then arrive at the citizen center station
bus line: Metro Line 1, the whole journey is about 17.4km
1. Take Metro Line 1 from Xihu culture square, pass 10 stops, and reach jinshahu station
2. Walk about 1.2km to Xiasha culture center
walk 456 meters
bus line: Metro Line 1 → Metro Line 4, the whole journey is about 11.1km
1. Take Metro Line 1 from Xihu Cultural Square, pass 3 stations, and then arrive at the East Railway Station
2. Walk about 50m, then transfer to Metro Line 4
3. Take Metro Line 4, pass 6 stations, and finally arrive at the citizen center station
/ *
* 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
}
}
import javax.swing.*;
import java.awt.event.*;
public class GUI extends JPanel{
private JTextField inTextField=new JTextField(20);
private JTextField outTextField=new JTextField(50);
private Timer timer=new Timer(100,new TimerListener());
private Changer changer=new Changer();//转换器//
public GUI(){
JPanel p1=new JPanel();
p1.add(new JLabel("小写"));
p1.add(inTextField);
p1.add(new JLabel("大写"));
p1.add(outTextField);
setLayout(new BorderLayout());
add(p1,BorderLayout.CENTER);
outTextField.setEditable(false);
inTextField.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
timer.stop();
changer.setIn(inTextField.getText());
outTextField.setText(changer.change());
timer.start();
}
});
timer.start();
}
class TimerListener implements ActionListener{
public void actionPerformed(ActionEvent e){
if(!inTextField.getText().equals("")){
changer.setIn(inTextField.getText());
outTextField.setText(changer.change());
}
}
}
public static void main(String[] args){
JFrame frame=new JFrame();
GUI gui=new GUI();
frame.getContentPane().add(gui);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
}
static class Changer{
String in;
String out="";
public Changer(){
}
public Changer(String in){
this.in=in;
}
public void setIn(String in){
this.in=in;
}
public String change(){
int lengthOfP1=(in.indexOf(".")!=-1) ? in.indexOf(".") : in.length();
//整数部分//;
int lengthOfP2=(in.indexOf(".")!=-1) ? in.length()-lengthOfP1-1 : in.length()-lengthOfP1 ;
//小数部分//;
if(lengthOfP2>2){
in=in.substring(0,in.indexOf(".")+3);
}
//取两位小数//
int p1=0;
int p2=0;
if(in.indexOf(".")!=-1&&in.indexOf(".")!=in.length()-1){
p1=Integer.parseInt(in.substring(0,in.indexOf(".")));
p2=Integer.parseInt(in.substring(in.indexOf(".")+1,in.length()));
//取两位小数//
}
else if(in.indexOf(".")==in.length()-1){
p1=Integer.parseInt(in.substring(0,in.indexOf(".")));
}
else{
p1=Integer.parseInt(in);
}
if(p2<10&&lengthOfP2==1){
p2=p2*10;
}
//取两位数//
if(lengthOfP1>=10){
return "Too much money.";
}
for(int i=lengthOfP1;i>0;i--){
int temp=(p1/((int)Math.pow(10,i-1)));
out+=value3(temp)+value1(i);
p1=p1%(int)Math.pow(10,i-1);
}
for(int i=2;i>0;i--){
int temp=(p2/((int)Math.pow(10,i-1)));
out+=value3(temp)+value2(i);
p2=p2%(int)Math.pow(10,i-1);
}
String output=out;
out="";
return output;
}
public static String value1(int num){
switch(num){
case 1:
return "元";
case 2:
return "十";
case 3:
return "百";
case 4:
return "千";
case 5:
return "万";
case 6:
return "十万";
case 7:
return "百万";
case 8:
return "千万";
case 9:
return "亿";
default:
return null;
}
}//转为中文符号//
public static String value2(int num){
switch(num){
case 2:
return "角";
case 1:
return "分";
default:
return null;
}
}//转为中文符号//
public static String value3(int num){
String s="零壹贰叁肆伍陆柒捌玖";
return s.charAt(num)+"";
}//转大写//
}
}