十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
當(dāng)面試考官隨便地問你:“談?wù)勀阕约旱那闆r如何?”這是面試中的第一個問題。此刻,你應(yīng)把在此之前所有緊張不安的情緒穩(wěn)定下來。因為這個問題,應(yīng)試者已經(jīng)做了充分的準(zhǔn)備,并且有足夠的信心和勇氣相信自己能回答好這個問題。
創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站設(shè)計、做網(wǎng)站、日照網(wǎng)絡(luò)推廣、成都小程序開發(fā)、日照網(wǎng)絡(luò)營銷、日照企業(yè)策劃、日照品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供日照建站搭建服務(wù),24小時服務(wù)熱線:18980820575,官方網(wǎng)址:www.cdcxhl.com
1、面試自我介紹的內(nèi)容
首先請報出自己的姓名和身份。可能應(yīng)試者與面試考官打招呼時,已經(jīng)將此告訴了對方,而且考官們完全可以從你的報名表、簡歷等材料中了解這些情況,但仍請你主動提及。這是禮貌的需要,還可以加深考官對你的印象。
其次,你可以簡單地介紹一下你的學(xué)歷、工作經(jīng)歷等基本個人情況。請?zhí)峁┙o考官關(guān)于你個人情況的基本的、完整的信息,如:學(xué)歷、工作經(jīng)歷、家庭概況、興趣愛好、理想與報負(fù)等。 這部分的陳述務(wù)必簡明扼要、抓住要點。例如介紹自己的學(xué)歷,一般只需談本專科以上的學(xué)歷。工作單位如果多,選幾個有代表性的或者你認(rèn)為重要的介紹,就可以了,但這些內(nèi)容一定要和面試及應(yīng)考職位有關(guān)系。請保證敘述的線索清晰,一個結(jié)構(gòu)混亂、內(nèi)容過長的開場自,會給考官們留下雜亂無章、個性不清晰的印象,并且讓考官倦怠,削弱對繼續(xù)進行的面試的興趣和注意力。
花了我將近一個小時的時間擺弄,你還不舍得給分
第一個類
/**************************************************************************
* 該類為啟動類,運行該類,將跳出輸入數(shù)組對話框,輸入的數(shù)字之間用逗號隔開,若輸入
* 的不是數(shù)字有可能出現(xiàn)異常,請自己處理。輸入的數(shù)字最大個數(shù)為100,也可以修改處理
* 更大個數(shù)的數(shù)組。
**************************************************************************/
package terry.test;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.EventListener;
import java.util.StringTokenizer;
public class InputData extends JFrame implements ActionListener
{
Container con=this.getContentPane();
JButton button1=new JButton("確定");
JButton button2=new JButton("取消");
JLabel label=new JLabel("請輸入數(shù)組:");
JTextField text=new JTextField("數(shù)字之間用逗號隔開");
Panel panel1=new Panel();
Panel panel2=new Panel();
@SuppressWarnings("deprecation")
public InputData()
{
super("輸入有序數(shù)據(jù)對話框");
con.setLayout(new GridLayout(2,1));
panel1.add(label);
panel1.add(text);
con.add(panel1);
button1.addActionListener(this);
panel2.add(button1);
button2.addActionListener(this);
panel2.add(button2);
con.add(panel2);
this.setSize(300,200);
this.show();
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==button1)
{
String dataString=text.getText();//截取寫入的數(shù)組,現(xiàn)在還是一個字符串
ordArray arr=new ordArray(100);//生成排序類的實例;
//以下為處理整個字符串,轉(zhuǎn)化為整型數(shù)組。
if(dataString!=null)
{
StringTokenizer s=new StringTokenizer(dataString,",");
while(s.hasMoreTokens())
{
int temp=0;
try
{
temp=(new Integer(s.nextToken())).intValue();
}catch(NumberFormatException ex)
{
JOptionPane.showMessageDialog(null, "在數(shù)組中,請輸入整數(shù)值!");
}
arr.insert(temp);
}
}
this.dispose();
new InputSearchApp(arr);
}
}
public static void main(String args[])
{
new InputData();
}
}
第二個類
/**************************************************
* InputData實例向該類的實例傳遞了orderArray參數(shù)變量*
* *
*/
package terry.test;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
public class InputSearchApp extends JFrame implements ActionListener{
Container con=this.getContentPane();
JButton button1=new JButton("確定");
JButton button2=new JButton("取消");
JLabel label=new JLabel("請輸入要查找的數(shù)值:");
JTextField text=new JTextField(10);
ordArray arr=null;
Panel panel1=new Panel();
Panel panel2=new Panel();
public InputSearchApp(ordArray testArray)
{
super("輸入有序數(shù)據(jù)對話框");
arr=testArray;
con.setLayout(new GridLayout(2,1));
panel1.add(label);
panel1.add(text);
con.add(panel1);
button1.addActionListener(this);
panel2.add(button1);
button2.addActionListener(this);
panel2.add(button2);
con.add(panel2);
this.setSize(200,200);
this.show();
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==button1)
{
String dataString=text.getText();
int searchKey= (new Integer(dataString)).intValue();
boolean success=arr.find(searchKey);
if(success)
{
this.dispose();
JOptionPane.showMessageDialog(null, ("查找到數(shù)據(jù)"+searchKey));
}
else
{
JOptionPane.showMessageDialog(null, ("沒有查找到數(shù)據(jù)"+searchKey));
}
}
}
}
第三個類2分查找類
package terry.test;
public class ordArray {
private int[]a;
private int nElems;
public ordArray(int max)
{
a=new int[max];
nElems=0;
}
public int size()
{
return nElems;
}
public boolean find(int searchKey)
{
return recFind(searchKey,0,nElems-1);
}
private boolean recFind(int searchKey,int lowerBound,int upperBound)
{
int curIn,theindex;
//boolean flag=false;
curIn=(lowerBound+upperBound)/2;
if(a[curIn]==searchKey)
theindex=curIn;
else if(lowerBoundupperBound)
theindex=nElems;
else
{
if(a[curIn]searchKey)
return recFind(searchKey,lowerBound,curIn-1);
else
return recFind(searchKey,curIn+1,upperBound);
}
if(theindex!=this.size())
return true;
else
return false;
}
public void insert(int value)
{
int j;
for(j=0;jnElems;j++)
if(a[j]value)
break;
for(int k=nElems;kj;k--)
a[k]=a[k-1];
a[j]=value;
nElems++;
}
}
我給你出一個吧.
要不寫一個代碼統(tǒng)計器,我以前也寫過.不過功能沒你的這么多啊
1.寫個界面
2.按鈕請選擇文件夾目錄
3.開啟一個線程去這個文件下尋找.java文件結(jié)尾的并讀取行數(shù).
4.把讀取的代碼行數(shù)保存到數(shù)據(jù)庫.
你說的就基本上都用上了!!
其實我覺得你這樣子就是過度設(shè)計了.作為新手(猜的)不過給自己估計的太多
正確的是先實現(xiàn)功能.然后在這個基礎(chǔ)上優(yōu)化.新加.你一下做那么多.遇到困難的話會打擊自信心的.當(dāng)然排除你是高手中的高手!
祝.成功寫出來啊..呵呵
按照題目要求編寫的用javaBean規(guī)范設(shè)計的學(xué)生類Student的Java程序如下
需要創(chuàng)建user.java.test包,把Student.java文件和Test.java文件放入包中,編譯Student.java文件并且編譯運行Test.java文件得到運行結(jié)果
Student.java文件代碼如下
package user.java.test;
import java.io.Serializable;
public class Student implements Serializable{
private static final long serialVersionUID = 1L;
private String no;
private String name;
private double score;
public Student(){}
public Student(String no,String name,double score){
this.no=no;
this.name=name;
this.score=score;
}
public String getNo(){ return no;}
public void setNo(String no){ this.no=no;}
public String getName(){ return name;}
public void setName(String name){ this.name=name;}
public double getScore(){ return score;}
public void setScore(double score){ this.score=score;}
public String toString(){
return "學(xué)號:"+no+",姓名:"+name+",成績:"+score;
}
public static double getAvg(Student[] sArray){
double sum=0,avg;
for(int i=0;isArray.length;i++){
sum=sum+sArray[i].getScore();
}
avg=sum/sArray.length;
return avg;
}
}
Test.java文件代碼如下
package user.java.test;
public class Test{
public static void main(String[] args){
Student[] sArray=new Student[5];
sArray[0]=new Student("001","張三",89.5);
sArray[1]=new Student("002","李四",82.5);
sArray[2]=new Student("003","王五",93);
sArray[3]=new Student("004","趙六",73.5);
sArray[4]=new Student("005","孫七",66);
System.out.println("這些學(xué)生的平均分:"+Student.getAvg(sArray));
for(int i=0;isArray.length;i++){
System.out.println(sArray[i].toString());
}
}
}
創(chuàng)建一個名字為“ReportCard”的類,然后用下邊的內(nèi)容全部替換掉,你會成為全班最亮的仔。
import java.util.HashMap;
/**
* 學(xué)生成績單
*/
public class ReportCard {
public static void main(String[] args) {
ReportCard reportCard = new ReportCard("張三", "070602213");
reportCard.set("語文", 80.0);
reportCard.set("數(shù)學(xué)", 59.5);
reportCard.set("英語", 66.0);
reportCard.set("java", 80, 99.0);
reportCard.set("數(shù)據(jù)庫", 80, 66.0);
reportCard.set("毛概", null);
System.out.println(reportCard.getStudentName() + "語文分?jǐn)?shù):" + reportCard.get("語文"));
System.out.println(reportCard.getStudentName() + "數(shù)學(xué)考核結(jié)果:" + (reportCard.isPassed("數(shù)學(xué)") ? "合格" : "不合格"));
System.out.println(reportCard.getStudentName() + "期末是否掛科:" + (reportCard.isAllPassed() ? "否" : "是"));
}
// 學(xué)生姓名
private String studentName;
// 學(xué)生學(xué)號
private String studentNumber;
// 成績單
private HashMapString, CourseResult cards = new HashMap();
public ReportCard() {
}
public ReportCard(String studentName, String studentNumber) {
this.studentName = studentName;
this.studentNumber = studentNumber;
}
public Double get(String courseName){
CourseResult courseResult = cards.get(courseName);
return courseResult == null ? Double.NaN : courseResult.getStudentScore();
}
public void set(String courseName, Double studentScore){
CourseResult courseResult = new CourseResult(courseName, studentScore);
cards.put(courseName, courseResult);
}
public void set(String courseName, double passMark, Double studentScore){
CourseResult courseResult = new CourseResult(courseName, passMark, studentScore);
cards.put(courseName, courseResult);
}
public boolean isPassed(String courseName){
return cards.get(courseName).isPassed();
}
public boolean isAllPassed(){
for(CourseResult cr : cards.values()){
if ( ! cr.isPassed()) {
return false;
}
}
return true;
}
public String getStudentName() {
return studentName;
}
public String getStudentNumber() {
return studentNumber;
}
public void setStudentName(String studentName) {
this.studentName = studentName;
}
public void setStudentNumber(String studentNumber) {
this.studentNumber = studentNumber;
}
/**
* 課程
*/
class Course{
// 課程名稱
protected String courseName;
// 及格分
protected double passMark = 60;
public Course(String courseName, Double passMark) {
this.courseName = courseName;
if ( passMark != null) {
this.passMark = passMark;
}
}
}
/**
* 課程成績
*/
class CourseResult extends Course{
// 學(xué)生成績
private Double studentScore;
public CourseResult(String courseName, Double studentScore) {
this(courseName, null, studentScore);
}
public CourseResult(String courseName, Double passMark, Double studentScore) {
super(courseName, passMark);
this.studentScore = studentScore == null ? Double.NaN : studentScore;
}
public boolean isPassed(){
return studentScore = passMark;
}
public String getCourseName() {
return courseName;
}
public double getPassMark() {
return passMark;
}
public Double getStudentScore() {
return studentScore;
}
}