Member Avatar
Hello programmers! I am working on a Tic-Tac-Toe player vs. computer class, which is supposed to have a method in order for the game to start. In a member function, I am checking for a win, either by the player or by the computer. I check to see if a …
by nathan.pavlovsky in Software Development ()
Member Avatar
Hello. I uhh... I just want a sample code for the Exceptions: SecurityException and StackOverflowException. I'm still new to handling exceptions. Please, just a sample code that is about those two will do.
by Louie_Rave in Software Development ()
Member Avatar
whats wrong with this code? It keeps giving me an "unreachable code detected " exception
by pwolf 14 in Software Development ()
Member Avatar
i created a testScores class which initialized an object with an array of scores and had an exception that if the score was <0 or >100 it would throw an IllegalArguementException. I got my main program to work it throws the exception for the array with the bad grade in …
by newGains in Software Development ()
Member Avatar
line 43 is throwing this exception and i can't figure out why //Exception in thread "main" java.util.InputMismatchException //at java.util.Scanner.throwFor(Unknown Source) //at java.util.Scanner.next(Unknown Source) //at java.util.Scanner.nextDouble(Unknown Source) //at TestC.getBusinessInfo(TestC.java:50) //at TestC.main(TestC.java:29) any help is very much appreciated
by davidthefritz in Software Development ()
Member Avatar
I wanted to convert this segment of code into something slightly different
by Sumal in Software Development ()
Member Avatar
While lunching the application in TOMCAT 5.5 and JDK 1.5 I am getting below exception could some help me in resolving the issue Jul 25, 2012 4:12:50 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at …
by raviaaaa in Software Development ()
Member Avatar
Hi Guys Please Help me out....Iam banging my head to the wall now just because of this problem.... I want to get the HTML code of a Website using the Class of HttpWebRequst and HttpWebResponse..... the main problem is that whatever web requests are made...they are done using Internet Explorer.....Please …
by GeneralBilal1 in Software Development ()
Member Avatar
i am new to android. While i am running my application, it is running well in landscape mode, but in portrait mode, application is forcefully closed giving the following in log the code of my Kalma2.java is
by baig772 19 in Mobile Development ()
Member Avatar
Iâm creating a program that displays random lines from a file. I have 8 lines on my text file and after displaying the last/8th random line⦠it displays Segmentation fault and then terminates the program. The program should display a message saying that there are no lines left to display. …
by jcAmats in Software Development ()
Member Avatar
Can anyone help me with this? or alter the code of mine when it comes to the user Input here's the block of code of mine public int Remove(int i, Briefcase c[], String[] m) { what this basically do is when you enterd an index of an array and that …
by chiiqui in Software Development ()
Member Avatar
OK I have a project due tonight at midnight and I know I should have posted sooner but it seemed like such simple things that I just knew I could do it on my own. I was wrong. I need your help. I have a program that essentially makes a …
by 24x24 in Software Development ()
Member Avatar
What i'm trying to do here is just place the values in my text file into variables the txt file contains: 1111 50 2222 60 3333 70 4444 80 5555 90 i get the error :Exception in thread "main" java.lang.NullPointerException at udptry2.m.readfiless(m.java:41) at udptry2.m.main(m.java:68) package udptry2; import java.io.BufferedReader; import java.io.BufferedWriter; …
by jeffrey o in Software Development ()
Member Avatar
I'm having trouble figuring out how to use exceptions to check if a file stream was created successfully. I know I can use if statements, but how do I do this using try/catch statements? It compiles successfully but it gives me an error when I supply a non-existent filename as …
by TheFueley in Software Development ()
Member Avatar
Hi Guys, I'm currently developing a project using WCF (hosted on local IIS) which connects to a local SQL database using LINQ to get data. My problem is that when I run the code, 9/10 times it'll fail with the "Specified Cast Is Not Valid" error, but the other 1/10 …
by micmo in Software Development ()
Member Avatar
I am getting System.IndexOutOfRangeException everytime I try to compile my program. This is where the error is happening. public static string findlinks2(string source) { The error is occuring when is trys to assign the variable fmt2 the contents of fmt[1].ToString();. The error is obviously because the array fmt[1] does not …
by liamzebedee in Software Development ()
Member Avatar
I have implemented a catch statement for both the InputMismatchException and the ArithmeticException, how come they are not working? Also, if the user enters "quit" for the numerator, the program should be able to exit. But my understanding is that as soon as the user enters something that is not …
by flyingcurry in Software Development ()
Member Avatar
I am writing a program that creates a file and attaches it to an email. I use a loop to create the attachment, send the email and then do it again with different information in the attachment. This works well for one tim through the loop, but on the second …
by jonniebl in Software Development ()
Member Avatar
I have spent over a WEEK trying to figure out why my code isn't working. It's a long code, I will post it all but I will break down the code as I explain. First off, I have called double[] arrays and then initialized them later on in the program …
by musikluver4 in Software Development ()
Member Avatar
using exception try, catch and finally derive a program that accepts any 10 letter string. if the string is greater than 10, display an error message; if string has no vowel display an error message else display only all vowels. can u help me for the java code of this …
by coldheart27 in Software Development ()
Member Avatar
Hi, In C#, i got sql Exception which consists of 2 lines. I need only the 2nd line of that Exception only. Ex: The transaction ended in the trigger. Table Validation failed - Name: x; Condition: m!=0 i need "Table Validation failed - Name: x; Condition: m!=0" only. I have …
by chandruswami -2 in Software Development ()
Member Avatar
Hi , these days I'm reading the brans kernel development tutorial. and doing it's particles. So last I find to had to read Intel 80386 programmers manual by intel. In section 2.6 Interrupts and Exceptions I asking a theoretical question here. They said Exceptions are synchronous and Interrupts are asynchronous. …
by NicAx64 76 in Software Development ()