学生程序员 - 需要帮助:( [英] Student programmer - need help :(

查看:80
本文介绍了学生程序员 - 需要帮助:(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我是一名基础编程班的大学生,老实说,我很难学习Java。我在这里,因为我有一个实验室,我正在努力做到这就像我很难填补空白,因为我们的老师不教我们,他们只是说去。因此,任何提供帮助都非常有用。


我的实验室链接位于 http://www.cse.unt.edu/~ecelikel/spr...ments/lab4.doc 。这是一个.doc文件。我应该为喷气式战斗机模拟创建两个文件,我有点卡住,因为我对扫描仪类或做某些方法不是很熟悉。是的,我已经阅读了太阳教程,我把它们打开了,有时候我也听不懂。这就像是在试着读拉丁语。但到目前为止,这就是我所拥有的。星号是我的名字,只是选择不显示。

展开 | 选择 | Wrap | 行号

解决方案

其实......我甚至不认为我需要扫描仪。我想他们只是想在程序中看到它...嗯。


你得到错误是因为你声明方法返回一个布尔值然后你不会返回那种方法中的任何东西编译器不喜欢这样。


PS阅读有关如何使用代码标签的发布指南以及如何不以粗体显示内容。


我用粗体贴出来或者其他所有东西只是一起运行,所以我想我会把它弄清楚。我不知道,这只是困扰我。嘿。

Let me begin, I am a college student in a basic programming class and I honestly have a tough time learning Java. I''m here because I have a lab I''m trying to do and it''s like I have a hard time filling in the blanks because our teachers don''t teach us, they just say "go". So, any offering help is much obliged.

My lab link is located http://www.cse.unt.edu/~ecelikel/spr...ments/lab4.doc. It''s a .doc file. I''m supposed to create two files for a jet fighter simulation and I''m a little stuck as I''m not very experience with the scanner class or with doing some methods. Yes, I''ve read the Sun Tutorials, I have them open, just I don''t understand sometimes. It''s like I''m trying to read latin. But here''s what I have so far. The asterisks are my name, just choose not to display.

Expand|Select|Wrap|Line Numbers

解决方案

Actually... I don''t even think I need a scanner. I think they just want to see it inside the program... hmm.


You are getting the error because you declare the method as returning a boolean value and yet you don''t return anything in that method. The compiler doesn''t like that.

P.S Read the posting guidelines about how to use code tags and how not to post your content in bold for no apparent reason.


Well I posted in bold or else everything just kind of runs together, so I thought I''d make it obvious. I dunno, it just bothered me. Heh.


这篇关于学生程序员 - 需要帮助:(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆