20,182,319 Peng Miao Di 2019-2020-1 "Object-oriented programming and data structures," a test report

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

Course: "Programming and Data Structures"
Class: 1823
Name: Peng Miao Di
Student ID: 20182319
experiments Teacher: Johnny
experiment Date: September 9, 2019
Compulsory / Elective: Compulsory

1. Experimental content

• Based on the command line and IDE IntellJ IDEA Easy Tutorial simple Java program editing, compiling, running and debugging. (The experiment uses the command line)
• Practice basic Linux commands;
• learning Java program JDB debugging skills
• write simple Java programs.

2. Experimental procedure and results

  First, because the need for programming in java virtual machines, so we need some jdk program. Once you have downloaded, we can programmed.

  • First, we use vim to open a .javafile, and enter the code you want to run.
  • Then, press twice Ctrl+Shift+tto open two windows, one of which is used to compile and run, one for debug.
  • About debug: first lay in the third section of this window javac -g -d bin src/(你的文件名).java, and then stop in/at +(你想要的断点位置)set a breakpoint, then you can enter the next step by step or next, with a list view or local, cont exit.
  • Finally, after the completion of these steps can be turned over the code.

    3. Experimental problems encountered in the process and settlement process

  • Question 1:
  • It has been found not download ocral jdk and other files and can be downloaded at very slow speeds.
  • Problem 1 Solution:
  • I found the problem from the source image, then, follow the steps in the tutorial, Ubuntu mirror image of the original replaced by Ali cloud mirror source, the problem is basically solved, ocral jdk has been not under, but it seems there is no problem with open jdk , so I had to use the open jdk.
  • Question 2:
  • With a cloud of code can not upload the code
  • Problem 2 Solution:
  • Since started using Ubuntu 19.04, try using the method and second method can not be on will pass the code, a preliminary analysis is because Ubuntu version is too new, code cloud may not have updated, so the version 16.04 of had to re-install the . And then found a method that does not work, but the method is the second to go.

Other (perception, thinking, etc.)

xxx
xxx

Reference material

Guess you like

Origin www.cnblogs.com/ydfy/p/11516482.html