20182327 2019-2020-1 "Object-oriented programming and data structures" a test report

20182327 2019-2020-1 "Object-oriented programming and data structures" a test report

Course: "Programming and Data Structures"
Class: 1823
Name: Zhao Tianhao
Student ID: 20182327
experiments Teacher: Johnny
experiment Date: September 9, 2019
Compulsory / Elective: Compulsory

1. Experimental content

1. Based on the command line and IDE (Intellj IDEA Easy Tutorial] ( http://www.cnblogs.com/rocedu/p/4421202.html) simple Java program editing, compiling, running and debugging . (The main experiment use the command line)

2. Exercise Linux basic commands;
learning skills JDB to debug Java programs: https://www.cnblogs.com/rocedu/p/6371262.html
write simple Java programs.

3. The preliminary master Linux command in particular man, find, locate, grep, which, whereis, cheat and other core command; -
initial grasp of the Java development process, will be the appropriate choice of development environment;
master the use of Java development tools, can write simple Java program will edit, compile and run simple programs;
grasp debugging methods under appropriate conditions.

2. Experimental procedure and results

According to the tutorial jdb to debug the code, and learn how to use the code cloud upload your own code.

single-step debugging jdb

$ vim hellojdb.java

Establish a small program (a window) with vim

$ cd 20182316_hubo/
$ javac -g -d bin src/hellojdb.java

Java files compiled by javac

$ jdb -classpath .:./bin hellojdb
>stop in hellojdb.main
>run
>step (下一行)
>list (使用list来查看运行到了源代码的什么位置)
>exit 

3. Experimental problems encountered in the process and settlement process

  • Question 1: do not understand bin src.

  • Problem 1 Solution: The
    first thought bin src just command format, get a long time did not exist, only to find it did not create two directories need to be created with mkdir bin src command.
  • Question 2: Upload Ma failed to establish a link can not be established warehouse, to upload the file is not under repository directory
  • Problem 2 Solution: With the help of sister school seniors, debugging code cloud account, with the mv command to move the target file, and upload successfully established a warehouse yard cloud

Other (perception, thinking, etc.)

The first experiment, various commands unfamiliar, do not know where wrong, and finally thanks to the teachers and seniors sister school teaching. Come to understand the importance of the development environment. Own program can be run successfully, although just a simple hello java world. And Java but felt he had established a link back to ease of learning it.

Guess you like

Origin www.cnblogs.com/kv888777/p/11498030.html