Konrad Cetes

Greenhorn
+ Follow
since Feb 24, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Konrad Cetes

I forgot to change the forum when I was writing my question.

You are correct in assuming I haven't learnt about lists. And ya i guess main class is the wrong term. Basically I can only have one class and a main method. But this class is a Person class which contains contractors such as name, DOB and address. What I am trying to do is add a new person to the array in the main method. But i cant. I have already written down some pseudocode to try and resolve the issue but i cant seem to find a fix. Because normally with a registration program there would be a superclass like Student which would extend Person, but i cant have that.
6 years ago
Hey there,

I am attempting to create a bank account registration program. I am having trouble with my class though. I only have one additional class, that being Person. Is there a way around create a third class such as Account and adding each new Person to an array in the main class?

Not to sure if this makes sense, i dont really know how to explain it.
6 years ago
Hey guys,

I have 30 check boxes in a JFrame that i have. I am trying to write the code so that when one check box is selected, the ones before are also selected.
I.e.(if box 4 is selected then boxes 1, 2, and 3 will also be selected.)
I have a counter, and i tried multiple ways but it seems to not be working.
Any suggestions would be great!

7 years ago
Hi guys, I've been trying to create 4 checks for my Bingo Game, the checks need to include a horizontal, vertical, diagonal and victory check.
These checks simply check to see if the number called matches any number on the BINGO card. I've tried for loops and using a 2D array to check, but non of it seems to work.
Any ideas on how to go about creating the four checks would be much appreciated.

7 years ago
I've created a Bingo card, however the columns are not aligned with each other. I am trying to add a zero in front of any number that is less than 10 in hopes that it will fix the problem.




7 years ago
I'm trying to create a program that will remove all vowels from any given string then eventually do the same but with consonants. So far all I've been able to do is remove the rest of the string will replacing the vowels. I am trying to do this with out using an replace commands. Any ideas or help would be much appreciated.





Result:
Enter a word:
Hello
*
*
*
7 years ago
So how can I change that so i works? Because there is no space at the beginning of my string. It starts of with a word.
7 years ago
So if i convert degrees to radians it should work then?
7 years ago
Exception in thread "main" java.lang.NumberFormatException: For input string: " 30"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.parseInt(Integer.java:527)
at ch5_exercise_16.CH5_Exercise_16.main(CH5_Exercise_16.java:24)
Java Result: 1
7 years ago
I am trying to make a program that will take a user input in the form of a degree and print the sine, cosine and tangent if that angle. So far it kind of work, but only when I use 45 degrees but it does not print the correct values. With any other value it simply does not work and prints error messages.






7 years ago
Okay, so then how would I make the countdown timer, because I've tried about 3 different ways and non of them seemed to work, either it would break the game or i would a list of error messages.
7 years ago
I looked at it, but i didn't see anything pertaining to a countdown timer
7 years ago
It using just Applet
7 years ago
Yup, thanks a lot.
7 years ago
Honestly wasn't that hard, the code itself is a bit more complicated than that, but thats the jist of it all.
7 years ago