你好,提问者:
成都创新互联主要为客户提供服务项目涵盖了网页视觉设计、VI标志设计、成都全网营销推广、网站程序开发、HTML5响应式重庆网站建设、手机网站制作、微商城、网站托管及成都网站维护、WEB系统开发、域名注册、国内外服务器租用、视频、平面设计、SEO优化排名。设计、前端、后端三个建站步骤的完善服务体系。一人跟踪测试的建站服务标准。已经为成都服务器租用行业客户提供了网站营销服务。
对于你说的定位导航,给你个建议是,你可以调用百度地图API,当然别的也可以!百度的地位导航还是相当准确的,我测试过了!给你个百度API的链接,希望对你有帮助!
如果你觉得对你有帮助,望采纳,如有问题请继续提问!
class Vehicle {
int Speed;
public String getKind() {
return Kind;
}
public void setSpeed(int speed) {
Speed = speed;
}
public void setColor(String color) {
Color = color;
}
public void setKind(String kind) {
Kind = kind;
}
String Kind;
String Color;
public String getColor() {
return Color;
}
public Vehicle() {
// 默认构造方法
}
public Vehicle(int Speed, String Kind, String Color) {
this.Speed = Speed;
this.Kind = Kind;
this.Color = Color;
}
}
class Car extends Vehicle {
private int passenger;
public int getPassenger() {
return passenger;
}
public void setPassenger(int passenger) {
this.passenger = passenger;
}
public Car() {
// 默认构造方法
}
public Car(int Speed, String Kind, String Color, int passenger) {
this.Speed = Speed;
this.Kind = Kind;
this.Color = Color;
this.passenger = passenger;
}
}
class Demo {
public static void main(String[] args) {
Car car =new Car(120,"宝马","红",5);
car.setSpeed(160);
car.setColor("黄");
car.setKind("奥迪");
System.out.print(car.getKind()+"\t"+car.getColor()+"\t"+car.Speed+"\t"+car.getPassenger());
}
}
import java.awt.Button;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
public class Demo {
public static void main(String[] args) {
Demo demo = new Demo();
demo.run();
}
public void run() {
JFrame frame = new JFrame("title1");
frame.setLayout(null);
frame.setBounds(10, 10, 500, 300);
Button button = new Button("click");
button.setBounds(15, 15, 200, 100);
frame.add(button);
frame.setVisible(true);
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JFrame frame = new JFrame("title2");
frame.setLayout(null);
frame.setBounds(20, 20, 300, 100);
frame.setVisible(true);
}
});
}
}