its giving you an error because something is flawed in your when you call List<Donors> resultList = query.getResultList(); the compiler says it requires java.util.List<donorinfo.Donors> but it is...
Type: Posts; User: C++kingKnowledge
its giving you an error because something is flawed in your when you call List<Donors> resultList = query.getResultList(); the compiler says it requires java.util.List<donorinfo.Donors> but it is...
it's still a little buggy
/*
* Reverse a string but keep the words in their original positions
*/
import javax.swing.*;
class ReverseString {
String inputStr;
would i use an int as the temp variable even tho im swapping char elements??? it says the precision might be lost if i use char
so i would add another method to do the swap or should i just go ahead and keep coding in the for loop???
how would i swap char elements??? i have a code but where do i go from here /*
* Reverse a string but keep the words in their original positions
*/
import javax.swing.*;
class ReverseString...
call a method to reverse the current element in the array and then something like empty += revStr[x];
thanks for that nugget i think that's what i needed to write this
--- Update ---
wow i...
ok i read something about a char array but wasnt sure of its importance... so turn the input into a char array and then make a method that returns a string? how would i turn the char array into...
ok i thought there would be a faster way using simple for loops and maybe an if statement.... so i should make a method to separate the string of words into let's say, a String array and then another...
without using a StringBuffer object....
didnt know it duplicated my connection got lost as soon as i hit post.... would i need a variable to specify the white space and another string variable for the new result??? also would it make a...
i was wondering if anybody can give me some help with drawing out the logic behind reversing a string with the following results: sample = "My name is jack"; the reverse should display "yM eman si...
i was wondering if anybody can give me some help with drawing out the logi behind reversing a string with the following results: sample = "My name is jack"; the reverse should display "yM eman si...
what does this.data=data mean in your constructor? you only have one data member, public int data, defined so your constructor isn't assigning anything... your boolean method in the LinkList class i...
you're passing a Graphics object as a parameter in your definition but you didn't follow the rules of that syntax in your main method... its says to you need to delete something in your face methods...
i'm not too sure if you can increment cur like the way you did in your super class... that kind of syntax works in the c/c++ languages
from what i see you're getting a null exception because ur trying to load a set of pokemon info from a text file that hasn't been initialized... instead of a buffer reader try using an input stream...
look at the constructor you created and then go to the main method and look at the object you instantiated.... does the new object you created match the definition you made for a Student object???
no prob i'm just like u trying to gain knowledge and help others.... happy coding
u just posted this same thread.... for conversations involving the same topic post on the same thread don't create a new one
make it equal 0 after the while loop
what's the problem???
ok i get it you want the number to generate a certain amount of times in the case that the number isn't one and keep count of other variables while that condition is true or not... just reset the...
i think i get what ur trying to do... just make the randNum1 generate without the while loop and see if that's what u had in mind... the use of that while loop makes possible for complications and...
to clean the code up you can make your roundTwo variable a showConfirmDialog and change your while statement afterwards to an if statement that runs the game again should the user select yes......
u have in your while loop randNum1 != 1 but you also have if(randNum1 == 1) inside the loop so if that case is true then after that loop randNum1 will be equal to 1 so your while loop will never run...