Search:

Type: Posts; User: greystreet34

1. Thread: Creating a Linked List from the contents of a file

by greystreet34
Replies
1
Views
1,321

Creating a Linked List from the contents of a file

Hi, I'm working on an assignment for programming class where we're supposed to create a method that takes the contents from a text file (one giant string) and stores them piece by piece in a linked...

by greystreet34
Replies
6
Views
4,531

Re: Converting Military Time

Thanks for the help everyone, and for the information about cross posting. I wasn't sure about the rules for that and if I do continue to post on different forums I'll be sure to link the other...

by greystreet34
Replies
6
Views
4,531

Re: Converting Military Time

I did, but we never went over any of those classes and I'm trying to figure it out with the tools we learned so far. (this is a first semester Java course).

--- Update ---

Ok, I got it to work...

by greystreet34
Replies
6
Views
4,531

Converting Military Time

Hi, I'm working on an assignment where I have to convert military time to standard time. I think I mostly have it solved except for when the minutes are between 0 and 10. For example,

909 should...
5. Thread: Counting # of 7's in an integer

by greystreet34
Replies
3
Views
567

Re: Counting # of 7's in an integer

Sorry, the teacher gave us a hint that we might consider using integer division or the modulus operator to separate out each digit of n, then check whether it is a seven. So I'm intending to check...
6. Thread: Counting # of 7's in an integer

by greystreet34
Replies
3
Views
567

Counting # of 7's in an integer

Hi everyone, I'm in an entry level Java class and I'm supposed to be able to count the # of 7's within an integer. I've read the chapters and looked online for help but can't seem to figure it out. ...