Java Projects为初学者改进他们在java中的编码 [英] Java Projects for the beginner to improve their coding in java

查看:63
本文介绍了Java Projects为初学者改进他们在java中的编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以在java中建议大量的项目,以便改进并习惯java语言。

can any one suggest a good number of projects in java so as to improve and get used to the java language.

推荐答案

幸运的是这是最简单的项目之一感谢 Sun Oracle提供的优质在线资料。官方的java教程非常棒,在阅读官方在线文档之前,我不会花一分钱在书上。阅读完该文档之后,您将能够从一本书的目录中决定它是否适合您,最重要的是 - 如果您仔细阅读在线文档并尝试,那么您将成为一名非常优秀的Java程序员简单示例程序中的内容并行。



您可以在此处找到在线文档:http://docs.oracle.com/javase/tutorial/ [ ^ ]

它被拆分为2个主要段落:第一段(Trails Covering the Basics)是关于java语言元素和非常基本的运行时库(如集合:数组,映射,...)。以下部分(创建图形用户界面,专业路径和课程)是关于Java库。



当你学习基础知识(java语言)时,你不要真的有工具来解决真正有趣的问题,你只能处理更简单的问题。您将在doc中找到这样的简单问题,因为它将使用示例代码演示语言功能。始终自己尝试示例代码,编译并运行它。我首先只在命令行上使用高级ide(比如eclipse / netbeans)这样做,因为这有助于你理解在后台运行的是什么,即使你正在加快你的工作速度。



第一段(Trails Covering the Basics)非常重要,与图书馆部分相比,它相对较短。从图书馆段落(专业化课程和课程)中学习所有内容都是浪费,因为它是整个教程的重要组成部分,您将看不到这些库(如jaxb,security和javabeans)的重点,因为它们对于业余爱好程序员/初学者,因为它们旨在简化企业应用程序的开发。首先,您应该遇到一些企业问题,以了解为什么这些过于复杂的库使用起来很有趣。作为初学者/爱好程序员你绝对应该掌握的图书馆:

- swing(gui)

- networking / socket / rmi(所有这些都与网络相关)

使用java语言和gui编程以及一些网络编程知识(例如socket或rmi),您应该能够自己组建一个聊天服务器/客户端,而不会欺骗其他服务器编程。不要欺骗尝试自己找到解决方案(棘手的部分将处理服务器上的多个连接和/或线程)。服务器端问题有数百万个好的解决方案。之后你可以制作1v1多人变形虫游戏。

- 如果你对更严肃的游戏感兴趣,可以使用2D图形和声音(在线2v2多人变形虫游戏制作)

- 如果你想将数据保存到数据库中,jdbc也是一个有用的主题,如果你以后想要做一些基本的Web编程而你决定使用轻量级数据库处理机制(jdbc)而不是更复杂的数据库处理机制,那么这个数据非常有用。 (JPA)。如果您决定学习jdbc,那么将gui(swing)日历应用程序放在一起,可用于将事件/注释保存到特定数据/时间,并且可选择它应该能够在特定事件发生前几小时发出警报。



- 泛型和反思:这些是更高级的主题,而不是java语言,但值得一看这些,你可能会发现它很有趣,他们可能会在采访时提出这个问题



与教程中提到的相比,有更多的技术和库(例如用于Web /企业软件编程),但即使仔细学习基础知识也需要数周时间。图书馆部分也是如此。



如果您认为自己成为高手,那么请查看java虚拟机规范文档以了解java语言/内存管理多一点。



祝你好运,玩得开心!
Fortunately this is one of the easiest questions to answer thanks to the really good quality online material provided by Sun Oracle. The official java tutorial is simply superb, I wouldn't spend a penny on books before reading the official online documentation. After reading that doc you will be able to decide from the table of contents of a book whether it is a good book for you or not, and most importantly - you become a very good java programmer if your read the online docs carefully and you try things in simple example programs in parallel.

You can find the online doc here: http://docs.oracle.com/javase/tutorial/[^]
It has been split to 2 main paragraphs: The first paragraph (Trails Covering the Basics) is about the java language elements and the very basic runtime libraries (like collections: arrays, maps, ...). The following sections (Creating Graphical User Interfaces, and Specialized Trails and Lessons) are about java libraries.

While you are learning the basics (the java language) you don't really have tools to solve really interesting problems, you can deal only with simpler ones. You will find such simple problems in the doc, as it will demonstrate language features with example code. Always try the example code yourself, compile it and run it. I would first do this without using an advanced ide (like eclipse/netbeans) only on the commandline as this helps you to understand whats goin on in the background even if you are speeding up your work with nice ides.

The first paragraph (Trails Covering the Basics) is very important, and its is relatively short compared to the libraries part. Learn everything from the libraries paragraph (Specialized Trails and Lessons) is wasteful as it is very large part of the whole tutorial and you will see no point of those libraries (like jaxb, security, and javabeans) because they are not very useful for a hobby programmer/beginner as they are intended to simplify the development of enterprise applications. First you should encounter some enterprise problems to understand why are those "overcomplicated" libraries are "fun" to use. Libraries you should definitely master even as a beginner/hobby programmer:
- swing(gui)
- networking/socket/rmi(all of these is networking related)
With the java language and gui programming and some network programming knowledge (for example socket or rmi) you should be able to put together a chat server/client by yourself without cheating from other server progs. Don't cheat try to find the solutions yourself (the tricky part will be handling multiple connectsions and/or threads on the server). There are millions of good solutions to the server side problems. Later you can make an 1v1 multiplayer amoeba game.
- later 2D graphics and sound if you are interested in more serious games (make on online 2v2 multiplayer amoeba game)
- jdbc is also a useful topic if you want to save data into databases, this one can be very useful if you later want to do some basic web programming and you decide to use a lightweight database handling mechanism (jdbc) instead of a more complicated one (jpa). If you decide to learn jdbc then put together a gui(swing) calendar application that can be used to save events/notes to specific data/time and optionally it should be able to alert a few hours before the specific event.

- generics and reflection: these are more advanced topics that rather belong to the java language but it worth taking a look at these, you may find it interesting and they may ask this on interviews

There are a lot more technologies and libraries (for example for web/enterprise software programming) than what is mentioned in the tutorial but even learning the basics carefully takes weeks and the same is true for the libraries part.

If you think you became a master then take a look at the java virtual machine specification document to understand the java language/memory management a bit more.

Good luck, have fun!


好吧,我想有人可以提出很多,但它无法真正帮助你。



你不能通过玩一些预先存在的项目来学习编写应用程序。它甚至可能对你的技能有害。只有从实际创建项目开始时才能获得一些进展(当然,在阅读相应的文档和手册时)。当你在问题上打破一些问题时(当然你应该首先选择相当容易的问题),你可以理解其他人的一些作品并学习一些课程。但到那时你将能够自己找到合适的代码示例。或至少在论坛上提出更充分的问题:-)。



祝你好运。

-SA
Well, I guess one could suggest many, but it could not really help you.

You cannot learn writing applications by playing with some preexisting projects. It could be even harmful to your skills. You can get some progress only if you start from actually creating project by yourself (while reading appropriate documentation and manuals, of course). When you break some of your teeth on your problems (and of course you should choose reasonably easy problems at first), you could be able to understand some works of others and learn some lessons. But by that time you will be able to find appropriate code samples by yourself. Or at least ask more adequate questions on the forums :-).

Wish you the best of luck with that.
—SA


http://1000projects.org/java-projects.html [ ^ ]


这篇关于Java Projects为初学者改进他们在java中的编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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