35,618 Topics

Member Avatar for
Member Avatar for oxoxalexoxox561

Hey, my name is alexandra and i'm actually in a computer programming class right now and my final is coming up. unfortunately, i have barely slid by all year long and haven't really learned much. Our final is coming up and i am in desperate need to pass it :'(. …

Member Avatar for peter_budo
0
142
Member Avatar for Devildawgg

Good morning to all:zzz: I am a beginner programmer in Java, and I am having an issue I don't quite understand for a program I am working on. I am hoping that someone here with some more experience than myself could take a look at my code and see what …

Member Avatar for Tarkenfire
0
372
Member Avatar for dancks

I'm tired, so the answer to this might be obvious but I cannot figure out what is going on. I uploaded the code plus input file. When I ran the code here's what I got: [code] What do you want to do? -1 -- quit 1 -- add object 2 …

Member Avatar for dancks
0
159
Member Avatar for Fumomo

Hey all, I've been trying to solve this issue I have now sometime but haven't had much luck with it. I want to be able to update a label in a JPanel from another JPanel EG panel1 has an actionListener that updates a JLabel in panel2. I've been searching around …

Member Avatar for JamesCherrill
0
737
Member Avatar for coderick

Hello, jsp newbie here... I'm having trouble starting off !! I'm using tomcat 5..5.31, I downloaded jakarta-taglibs-standard-1.0.6, copied the files in jakarta-taglibs-standard-1.0.6\lib to web-inf folder of my application in \webapps\ Following is the exception: type Exception report message description The server encountered an internal error () that prevented it from …

Member Avatar for peter_budo
0
272
Member Avatar for lacoffo

Hey all:) I'm learning Java and I'm having a little trouble on a polymorphic write-to-file function. Let me quickly explain my project: I have an abstract class Mammal, with non-abstract children Horse, Cow etc. I have a Main program that creates a couple Horses and Cows, and store these in …

Member Avatar for lacoffo
0
260
Member Avatar for jeffrey o

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 :[COLOR="red"]Exception in thread "main" java.lang.NullPointerException at udptry2.m.readfiless(m.java:41) at udptry2.m.main(m.java:68)[/COLOR] [CODE] package udptry2; import java.io.BufferedReader; import …

Member Avatar for javaAddict
0
230
Member Avatar for raephel

Hi, I have a project deployed on Linux machine on JBoss server and I'm executing that projet from Windows through Internet Explorer. Further more, I'm using this jsp code: <form name="upld" method="post" action="UpldFile" enctype="multipart/form-data" > <input type="file" name="file"> <input type="submit" value="Submit"> </form> to have a file chooser dialog which I …

0
56
Member Avatar for scarletfire

I am suppose to write a [I]ComparePlayers[/I] class that implements the [I]Comparator<Player>[/I] interface. It should compare players by number of games played (and then by alphabetical order of surname if the number of games played is the same). This is what I wrote , it is the general idea i …

Member Avatar for JamesCherrill
0
113
Member Avatar for Gabit

I need to create java class which has 2 methods: [CODE] public class IPTPLogin extends IPTPCommand { /** The email address */ private String login; /** The password of email */ private String passcode; /** Creates a new instance of IPTPLogin */ public IPTPLogin(String log, pass) { setLogin(log, pass); } …

Member Avatar for bibiki
0
204
Member Avatar for anaana

i have this code for palindrome [CODE] import java.util.*; public class CheckPalindrome{ public static void main(String[]args){ Scanner input=new Scanner(System.in); System.out.print("Enter String: "); String st=input.next(); String str[]=st.split(""); String reversedSt=""; for(int i=str.length-1;i>=0;i--){ reversedSt+=str[i]; } if(st.equalsIgnoreCase(reversedSt)){ System.out.println("String is palindrome"); } else{ System.out.println("String is not palindrome"); } } }[/CODE] i need the same programme …

Member Avatar for JamesCherrill
0
198
Member Avatar for caierhui

Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named asset_monitoring_systemPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory: oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Local Exception Stack: Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7 …

Member Avatar for caierhui
0
163
Member Avatar for mani_1991

hii, i was intresting in doing project on sending messages to bluetooth devices with in my wifi range.... is it possible to send messages to the avialable device..???

Member Avatar for mKorbel
0
59
Member Avatar for patrickgormally

Hi everyone! I'm creating a class for a mortgage payment. I pretty much have most of the code finished but when I compile the code I receive multiple errors saying "Cannot find symbol". This error occurs about 9 times and I am also having some problems with the compareTo method. …

Member Avatar for patrickgormally
0
132
Member Avatar for shyla

i need to create a class named MyShape(which i did ), and make it a super class. its instance variables should be the x1 x2 y1 y2 values shared by all subclasses. the class needs to include 1. a no argument constructor 2. constructor that takes the argument necessary to …

Member Avatar for JamesCherrill
0
297
Member Avatar for jeffmummey@sbcg

I need a strong response to my question. I can write and compile a java application. The computer won't run the applications when the proper java command is used in command prompt. I did load the Java run time environment. The applet will load using an html tag. Whats happening …

Member Avatar for sirlink99
0
168
Member Avatar for stephen lynch

hi im doing a project in java and i would to know how do u create a restuarant bill calculator in java

Member Avatar for javaAddict
0
494
Member Avatar for jeffrey o

This is the server code for the udp server/client program . There are no errors except when you run the program the ff error occurs: [COLOR="Red"]Exception in thread "main" java.lang.NullPointerException at udptry2.UDPServerbackup2.main(UDPServerbackup2.java:44) Java Result: 1[/COLOR] the client side works how it should just this part of the program [CODE] package …

Member Avatar for parry_kulk
0
531
Member Avatar for Maelst0rm

Hi guys, Im trying to do battleships game. But I dont know, what is the best way to create interactive battlefield? I created JFrame and put inside two JPanels (my and opponents field).I wanted to put inside JButtons (JFrame had GridLayout), but I was told this isnt right solution. It …

Member Avatar for JamesCherrill
0
774
Member Avatar for Kprosser1029

I need help creating a Binary file that displays in Hex and readable text! I have already completed the gui part I need help converting to Binary. Here is what is required: 16 Byte values displayed as 2 digit hex values separated by 2 spaces, then a separator | and …

Member Avatar for thekashyap
0
259
Member Avatar for techie929

Hi , I am not able to execute the below makefile. [CODE] JFLAGS = -g JC = javac .SUFFIXES: .java .class .java.class: $(JC) $(JFLAGS) $*.java CLASSES = .\minimax.java default: classes classes: $(CLASSES:.java=.class) clean: $(RM) *.class [/CODE] I am getting this error make: Fatal error in reader: makefile, line 6: Unexpected …

Member Avatar for thekashyap
0
55
Member Avatar for Stoss

1. The InputMismatchException. Write a program that prompts the user to read an integer and displays whether the number is even or odd. If you enter an invalid integer (for example, 2.5 is not a valid integer) your program should say so. Note, you will need the following import statement: …

Member Avatar for javaAddict
0
242
Member Avatar for newbieha

I have a class that contains two arraylists- student names and Ids I want to put them into LinkedHashSet( so, I can sort, delete, add and edit e student profile); I created a class called Student that contains setName getName setId getId and toString methods. now, I try to do …

Member Avatar for JamesCherrill
0
89
Member Avatar for xiiopao

hi there guys :) im currently working on a project with jquery... the thing is.. i need to change the contents of a div named "sub2" with the contents of "pets.html"... i've read some tutorials and i thought the best way to do this is through the use of jquery... …

Member Avatar for Airshow
0
132
Member Avatar for dataholics

Hello, My web-page is not loading correctly in some of older version of browsers. Here is my website [URL="http://128.196.27.167:8080/"]mis510proj[/URL]. Any help would be appreciated :) I attached my naive code below :) [CODE] <!-- Page (2 columns) --> <div id="page" class="box"> <div id="page-in" class="box"> <!-- Content --> <div id="content"> <div …

Member Avatar for masijade
0
94
Member Avatar for FlightOfGrey

I'm am reasonably new at coding and am currently studying it at College. While in my break I found Project Euler a neat little site with problems which I have been working through for an extra challenge. This is the question that I am stuck on: [url]http://projecteuler.net/index.php?section=problems&id=8[/url] basically you are …

Member Avatar for jon.kiparsky
0
179
Member Avatar for StevoLord

Hi all, I am using Eclipse to create a slideshow program. Currently have anything set up and it works fine. However I would like my BufferedIamges to be made into a video with a time frame of 15seconds for each picture. I only want to have maybe up to 4-5 …

Member Avatar for StevoLord
0
75
Member Avatar for jon.kiparsky

I'm not very well up on ant, trying to learn a few things about it this afternoon. Is it possible to read in values from the command-line ant call? The scenario I have in mind is this: I want to make a generic build file that would have targets for …

Member Avatar for nezachem
0
172
Member Avatar for xiiopao

does anyone here know how to insert form contents accomplished by a user to a database.., i have a code but it doesnt seem to work.. :confused:... here's my code ... it's in jstl but if there is a easier alternative then just spill it out [CODE] <sql:update dataSource="${orders}" var="updatedTable" …

Member Avatar for xiiopao
0
207
Member Avatar for chinee

i want to output final coccer team standing that uses random so every time the match is played the final four team changes so how do i output that the ouput to the file changes as well

Member Avatar for JamesCherrill
0
131

The End.