A. 哪里有比较好的免费学习java的在线视频
B站啊,现在这上面除了追番还能看学习你不知道吧,学习的人还不少你不知道版吧,学习编程的个权动漫宅男程序员一堆一堆的你不知道吧……
我目前再追杜老师的Java零基础,不多说,已经一百四十多万的播放量,你去感受一下就知道了,搜Java或者Java教程一般第一个就是。
B. 新手java在哪里刷题
LearnJava 在线这是一个非常不错的学习 Java 的在线网站,纯免费。
Java是一门面向对象编程语言,不仅吸收了C++语言的各种优点,还摒弃了C++里难以理解的多继承、指针等概念,因此Java语言具有功能强大和简单易用两个特征。
Java语言作为静态面向对象编程语言的代表,极好地实现了面向对象理论,允许程序员以优雅的思维方式进行复杂的编程。
Java具有简单性、面向对象、分布式、健壮性、安全性、平台独立与可移植性、多线程、动态性等特点。Java可以编写桌面应用程序、Web应用程序、分布式系统和嵌入式系统应用程序等。
C. java试题,在线等 急
import java.awt.BorderLayout;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.BorderFactory;import javax.swing.ButtonGroup;import javax.swing.JButton;import javax.swing.JCheckBox;import javax.swing.JComboBox;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JOptionPane;import javax.swing.JPanel;import javax.swing.JRadioButton;import javax.swing.JTextArea;import javax.swing.JTextField;import javax.swing.border.TitledBorder;public class Main extends JFrame implements ActionListener{JTextField jtfName, jtfPswd;JTextArea jtaSelfIntro;ButtonGroup bg;JComboBox e;JCheckBox sleeping, sporting, climbing;public Main() {super("用户注册");JPanel mainPanel = new JPanel();mainPanel.setLayout(new GridLayout(7, 1, 10, 10));//***********************************mainPanel.add(new JLabel());//***********************************JPanel namePanel = new JPanel();jtfName = new JTextField();namePanel.setLayout(new GridLayout(1, 3));namePanel.add(new JLabel("输入姓名:"));namePanel.add(jtfName);namePanel.add(new JLabel());mainPanel.add(namePanel);//***********************************JPanel pswdPanel = new JPanel();jtfPswd = new JTextField();pswdPanel.setLayout(new GridLayout(1, 3));pswdPanel.add(new JLabel("输入密码:"));pswdPanel.add(jtfPswd);pswdPanel.add(new JLabel());mainPanel.add(pswdPanel);//***********************************JPanel sexPanel = new JPanel();sexPanel.setLayout(new GridLayout(1, 3));sexPanel.add(new JLabel("性别:"));bg = new ButtonGroup();JRadioButton male = new JRadioButton("男"), female = new JRadioButton("女");bg.add(male);bg.add(female);sexPanel.add(male);sexPanel.add(female);mainPanel.add(sexPanel);//***********************************JPanel ePanel = new JPanel();ePanel.setLayout(new GridLayout(1, 3));ePanel.add(new JLabel("学历:"));String[] e_list = {"高中","本科", "硕士", "博士"};e = new JComboBox(e_list);ePanel.add(e);ePanel.add(new JLabel());mainPanel.add(ePanel);//***********************************JPanel favPanel = new JPanel();favPanel.setLayout(new GridLayout(1, 4));favPanel.add(new JLabel("爱好:"));sleeping = new JCheckBox("睡觉");sporting = new JCheckBox("运动");climbing = new JCheckBox("爬山");favPanel.add(sleeping);favPanel.add(sporting);favPanel.add(climbing);mainPanel.add(favPanel);//***********************************mainPanel.add(new JLabel("自我介绍:"));//***********************************jtaSelfIntro = new JTextArea();jtaSelfIntro.setPreferredSize(new Dimension(300, 100));//***********************************JButton comfirm = new JButton("提交");comfirm.setPreferredSize(new Dimension(60, 30));comfirm.addActionListener(this);//***********************************JPanel panel = new JPanel();panel.setLayout(new BorderLayout(10, 10));panel.add(mainPanel, BorderLayout.NORTH);panel.add(jtaSelfIntro, BorderLayout.CENTER);panel.add(comfirm, BorderLayout.SOUTH);TitledBorder tb = BorderFactory.createTitledBorder("注册面板");tb.setTitleJustification(TitledBorder.CENTER);panel.setBorder(tb);this.add(panel);this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);this.pack();this.setLocationRelativeTo(null);this.setVisible(true);}@Overridepublic void actionPerformed(ActionEvent e) {String info = "提交信息:";info += "\n姓名: " + jtfName.getText();info += "\n密码: " + jtfPswd.getText();info += "\n性别: " + bg.getSelection().getActionCommand();info += "\n学历: " + e.getSelectedItem();String fav = (sleeping.isSelected() ? "睡觉 " : "") + (sporting.isSelected() ? "运动 " : "") + (climbing.isSelected() ? "爬山 " : "");info += "\n爱好: " + fav;info += "\n自我介绍: \n" + jtaSelfIntro.getText();JOptionPane.showMessageDialog(null, info);}public static void main(String[] args) {new Main();}}