Search found 552 matches

Return to advanced search

Re: Java Question

Well, i went to my documents, JCreater LE, projects, hope and then i just made a txt file in the hope folder. Do i have to save it in the src section? You could try that, that might work. Alternatively, you can use the absolute path to the file, i.e: new FileReader("C:\\Documents and Setti...
by TheMindRapist
on Sun Jul 25, 2010 1:31 am
 
Forum: Programming
Topic: Java Question
Comments: 7
Views: 8922

Re: Command prompt

There should be Logic/Basic/X missions where you have to write SQL queries or UNIX commands to accomplish something.
by TheMindRapist
on Sun Jul 25, 2010 12:59 am
 
Forum: Comments & Suggestions
Topic: Command prompt
Comments: 16
Views: 20532

Re: Another simple Java Question from a newbie.

I know - it just seems unnecessary to set it to true everytime "yes" is answered. If it's true by default all you have to do is change it to false when they say "no". Still, it makes no difference. I think (hope) that he meant the line boolean answer = true; is outside the loop,...
by TheMindRapist
on Sun Jul 25, 2010 12:51 am
 
Forum: Programming
Topic: Another simple Java Question from a newbie.
Comments: 19
Views: 13126

Re: Java Question

For that code to work cat.txt has to be in the same folder as hope.java, which likely isn't the My Documents folder.
by TheMindRapist
on Sun Jul 25, 2010 12:50 am
 
Forum: Programming
Topic: Java Question
Comments: 7
Views: 8922

Re: Another simple Java Question from a newbie.

Here is the final code "I think." I also added a reset of question and exclam at the end of the "do" to make the responses correct when the type of response changes. This isn't a big deal, but it's pointless to do assign true to answer each time reply is "yes" - answer...
by TheMindRapist
on Sat Jul 24, 2010 8:53 pm
 
Forum: Programming
Topic: Another simple Java Question from a newbie.
Comments: 19
Views: 13126

Re: Another simple Java Question from a newbie.

That was probably added by mistake - using next is fine since "yes" or "no" is only one word. No, I think it is better to use nextLine in place of next. I believe his error was that by using next he read the line without advancing to the next line, then when the loop was ran nex...
by TheMindRapist
on Sat Jul 24, 2010 8:48 pm
 
Forum: Programming
Topic: Another simple Java Question from a newbie.
Comments: 19
Views: 13126

Re: Another simple Java Question from a newbie.

There were a few logic errors in addition to the error with using next in place of nextLine at the end. package pg231num1; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); boolean exclam = false; boo...
by TheMindRapist
on Sat Jul 24, 2010 8:34 pm
 
Forum: Programming
Topic: Another simple Java Question from a newbie.
Comments: 19
Views: 13126

Re: Java Question

wow, thank you very much. that answered a lot of questions. I wish there was a simple method to use, but now at least I can accomplish the project. Well, for your specific problem much simpler code will suffice: Scanner in = new Scanner(System.in); String temp = ""; while(!temp.ma...
by TheMindRapist
on Fri Jul 23, 2010 4:34 pm
 
Forum: Programming
Topic: Java Question
Comments: 7
Views: 4414

Re: Java Question

but thats only if there is a delimiter present right? what if there is no delimiter? is there just no easy way? There is a deliminator though. For the numbers, the deliminator is a sequence of letters, for the letters the deliminator is a sequence of numbers. With that in mind, you could do somethi...
by TheMindRapist
on Fri Jul 23, 2010 2:23 am
 
Forum: Programming
Topic: Java Question
Comments: 7
Views: 4414

Re: Best Way To Hide Your Location??

Commute to a different city when you want to use the internet.
by TheMindRapist
on Wed Jul 21, 2010 6:21 pm
 
Forum: Networking
Topic: Best Way To Hide Your Location??
Comments: 16
Views: 15898
PreviousNext

Return to advanced search