# Search:

Type: Posts; User: Junky

Page 1 of 20 1

1. ## Thread: add a number of X consecutive values in an array and get the minimal total value!

by Junky
Replies
2
Views
199

### Re: add a number of X consecutive values in an array and get the minimal total value!

Adding X consecutive values in an array and getting the minimal value!

Duplicate post.
2. ## Thread: Recursive method to remove vowels in a string

by Junky
Replies
4
Views
259

### Re: Recursive method to remove vowels in a string

a recursive method to remove vowels in string

Done!
3. ## Thread: Need help with a parking fees code

by Junky
Replies
8
Views
411

### Re: Need help with a parking fees code

This could be simplified if after you have validated entry and exit times, calculate total time spent in car park. Then calculate fee. This will remove the need for so many if statements and would...

by Junky
Replies
1
Views
249

5. ## Thread: How many beers does it take to become intoxicated?

by Junky
Replies
25
Views
378

### Re: How many beers does it take to become intoxicated?

Just to clarify the Scanner does not "grab" the new line/carriage return character, it reads and returns anything up to the new line/ carriage return character. In this case there is nothing there...
6. ## Thread: Stuck on 12 node star assignment

by Junky
Replies
9
Views
195

### Re: Stuck on 12 node star assignment

What function? Subtraction?
7. ## Thread: Stuck on 12 node star assignment

by Junky
Replies
9
Views
195

### Re: Stuck on 12 node star assignment

When you add 5 to 10 you get 15 which is greater than 12 and your loop exits. You will need to rethink your design. Maybe a while loop would be better. To wrap your values back around to 0 you can...
8. ## Thread: Confused

by Junky
Replies
13
Views
219

### Re: Confused

Be careful. Just sticking static in everywhere is not a good solution and goes against OO principals.
9. ## Thread: Contacts

by Junky
Replies
2
Views
137

### Re: Contacts

Let's not. A better solution is to create a Person object to encapsulate the data but I guess this is a stupid assignment to teach 2D arrays.
10. ## Thread: How to handle string with characters

by Junky
Replies
7
Views
201

### Re: How to handle string with characters

That's why I'm confused. What exactly is the OP doing?
11. ## Thread: My code is not working :(

by Junky
Replies
2
Views
151

### Re: My code is not working :(

A lot of the time when people say "... doesn't show on my gui" it's a painting issue. Have you called repaint?

by Junky
Replies
2
Views
161

Long month!
13. ## Thread: How to handle string with characters

by Junky
Replies
7
Views
201

### Re: How to handle string with characters

:confused:

If the String is coming from another system then internal quotes should not be a problem.
14. ## Thread: Help with calculating age

by Junky
Replies
5
Views
303

### [SOLVED] Re: Help with calculating age

A Calendar object will represent the exact point in time it was created. You can then call its methods to find the day and month. Then compare them to you birthdate month and day. Go to the API and...
15. ## Thread: Help with calculating age

by Junky
Replies
5
Views
303

### [SOLVED] Re: Help with calculating age

You can use the Calendar class to check if today's month/day is before or after the month/day of the birthdate and adjust accordingly.
16. ## Thread: multiple methods in one class

by Junky
Replies
6
Views
358

### Re: multiple methods in one class

Copy and paste the exact error messages as well.
17. ## Thread: Why won't it read my Input file?

by Junky
Replies
6
Views
229

### Re: Why won't it read my Input file?

You could use a JFileChooser and allow user to locate the file.
18. ## Thread: Beginner Java Assignment Help (Calculations/Conversions)

by Junky
Replies
2
Views
325

### [SOLVED] Re: Beginner Java Assignment Help (Calculations/Conversions)

Try working out how to do this using your native currency first. Once you have that working then convert it to G S K!

(Shekel for an ex-leper?)

by Junky
Replies
3
Views
190

20. ## Thread: Generating per person URL

by Junky
Replies
11
Views
476

### Re: Generating per person URL

Even if this was possible what would stop A logging on and then handing computer over to B to do homework for them? As Cornix said, students will always think of ways to cheat. What gets me is that...
21. ## Thread: Infinite loop on double linked list

by Junky
Replies
13
Views
222

### Re: Infinite loop on double linked list

How do you add a new element to the List?

--- Update ---

OK

Just looked at the code and it seems you are maintaining a Sorted List. Normal List implementations have two instance variable,...
22. ## Thread: Reusing an Entered List of Array Elements

by Junky
Replies
10
Views
132

### [SOLVED] Re: Reusing an Entered List of Array Elements

String[] key = {"A", "D", "B"};
String[] answers = {"A", "C", "B"};
loop {
if answer equals key element {
inc count
}
}
if use a new key {
get new key
}
23. ## Thread: Making a rectangle

by Junky
Replies
21
Views
368

### Re: Making a rectangle

Yes it does. If you go back and read and reread things until you understand you will be able to fix your own problems and you learn better that way. Just expecting us to tell you how to fix the code...
24. ## Thread: Infinite loop on double linked list

by Junky
Replies
13
Views
222

### Re: Infinite loop on double linked list

Your choice of variable names is confusing: previousElement begins by pointing to the next element.
A quick look at the first loops it seems you are actually reordering the first two elements over...
25. ## Thread: floyd triangle

by Junky
Replies
10
Views
231

### Re: floyd triangle

If you have working code that prints out all lines of the triangle all you need to do is add some sort of control that only prints the desired line. What kind of control statement do you think that...
Results 1 to 25 of 500
Page 1 of 20 1