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();}}