• Post Reply Bookmark Topic Watch Topic
  • New Topic

Final Project Ideas?  RSS feed

 
Lexi Turgeon
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have to make a final project for my Java class but I am not sure what I should do. I am allowed to do anything I want as long as it includes at least 4 of the following:
-Arrays
-Sorting
-Recursion
-Swing
-File I/O
-Using several methods of the Java "String" class, such as substr, charAt, length (see Chapter 7 for examples)
-Create your own java class (defining an object)
-Create your program as an applet

Does anyone have any ideas as to what I could do?
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You doubtless mean four of the following six. And I can count, because nobody is going to use applets, so that makes six.
 
Lexi Turgeon
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:You doubtless mean four of the following six. And I can count, because nobody is going to use applets, so that makes six.


If you choose to look at it that way, then yes!
 
Liutauras Vilda
Sheriff
Posts: 4923
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lexi Turgeon wrote:-Arrays
-Sorting
-Recursion

Implement all well known sorting algorithms in recursive way without using any loops. That would cover Arrays, Sorting, Recursion.
Just an idea and probably quite useful skill.
 
Joe Milane
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about converting a json file to a sorted csv file?

You could parse a json file with an array of json documents, and get all the distinct field names in the document.  If the documents are hierarchical, you could traverse them recursively.  You'd have the file I/O and recursion requirements met.

Then, let's say you want to create a csv with all the values for each field, with the field names at the top, and the list of sorted values for each field name underneath.  There are different data structures you can use, but you can use arrays and would definitely need sorting.  So that's 4.
 
Liutauras Vilda
Sheriff
Posts: 4923
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Milane, welcome to the Ranch.

I like your idea better Probably OP should consider yours as priority over mine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!