32,205 Topics
| |
i have one question. I understand the type conversion in java.But i dont know where to use which conversion. Below i have given one example,but i don't which is used where? String s=”27”; int i=Integer.parseInt(s); System.out.println(i); /////////////////////////////////// String s=”27”; int i=(int)s; System.out.println(i); Although both are doing the same thing,but where … | |
I created a program that is running daily at a certain time, but I want this program to stop at some particular days(week ends), I have used the below codes to set the current time, public int GetDateNow() { Calendar currentdate = Calendar.getInstance(); DateFormat dateformat = new SimpleDateFormat("HHmm"); String datenow … | |
I Basically wanted to take an input and store it into a 2D Array called mat with a 3x3 size so i tried taking an input string, convert them into char and then sotring them in an array list and this is what i wrote so far. System.out.println("Enter Message"); Scanner … | |
Which Company is taking Java Certification Exam these days ? | |
Hi all, I am trying to learn java here, and having some difficulties with a very simple program that I am working on in an attempt to get a feel for what the language can do. This is my code so far: import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; … | |
hey i am new to gwt and i am doing an project on java and gwt and stuck in one part i want to create a reminder that is like user enters date and time and at that time a pop up should be displayed reminding user of his event.can … | |
An **applet** I am creating **uses Timers for its animation**. Even though the Timer is set to repeat at a constant 30ms, **the applet's framerate on my computer** versus on my brother's laptop **is significantly better**. Is there a chance that **on slower computers**, the **Timer "ticks" slower**, so to … | |
can anybody help m in displaying an image file into GUI ?basic please bcoz i m newbie TQ | |
Im creating a project in java using netbeans. I have to create lots of forms for every operation. So i created a menubar and add menu items in it. Instead of creating so many jframe forms i decided to create JPanel forms for evry operation. So in this way i … | |
Can i get java source code for making an er diagram of any database(which have entities, attributes and relationships)? | |
Hello fellows! I have question. Iam doing some project to my school and I have small problem. I have chart (iam using jfreechart) in Chart.java file and after user is loading to his profe he should be able to push button and chart wit his statistics should appear. My problem … | |
I'm self-studying python, and more advanced python programmers have pointed out to me that I'm learning an obsolete instruction set and the use of obsolete tools thanks to being taught about an old version of python rather than the most current one. The website where I'm self-studying also offers chances … | |
Hi everyone, I'm doing a RMI chat application for my client-server distributing programming module. I have stuck nearly at the very end of it. What I doing is: running the server. running the the UI, connecting to the server. Loging as user1. sending the priv messagae to other user. Replaying … | |
Hi guys, I have an ImageButton control in asp.net calling a javascript function to display it in block. The elements have their own css classes, but they do not appear in the context that I gave them. I am assuming this is a problem with my css because the javascript … | |
Hi, i have a html page with 3 frames(Index.html), and the preview is as in the screenshot. Here in Welcome.html i have a button named block. when i click this button i want left.html to be disabled(the frame in left side), i'm able to do it., but the form elements(the … | |
I am creating this Word Processor...for my college project...an i hav this bugging problem, i have this text area which has a popup menu,this popup menu has a listener(below)..now comming to the point when i right click the TextArea a grau colored popup come up(all the menu items hidden) only … | |
I need the algorithm not the code . I am on a project where I should not use any third party libraries other than java sdk. I am supposed to convert a text file to an xml file. I know that there are SAX parsers and DOM parsers available and … | |
How to select data from different tables in a single database and show in a single jtable.. Pls I need help | |
I seem to have screwed the whole process of updating Java to 10 simply because I could not stop the stupid process after I realized that I couldn't take 9 off at the same time. Uh, kinda stupid thing to try, true, but anything worth its salt won't let you … | |
Please tell me why I am getting a "bad operand type" I'm trying to to do a comparison on a range of value. Please help me fix. if (-13683360 <= rgb <= -13683381) | |
i want to remove complete image from an image file(like JPEG,etc) into an editable format in java..... means in short i want to remove image from an image file in java | |
Hi, I am working on the World of Zuul game. My question is about these three classes: Room, Inventory and Game. The game class uses an instance of Room called currentRoom. In Inventory Class, I want to write a method to check if a certain item is present in the … | |
Test Class @Test public void testCharRemover() { TextModifier remover = new CharRemover('x'); StringBuilder buff = new StringBuilder("a bx xd xx"); remover.modifyText(buff); Assert.assertEquals("a b d ", buff.toString()); } ------------------------------------------------------- /** * Removes all occurrences of the character passed to the constructor * from the input when {@link TextModifier#modifyText(StringBuilder)} * is called. … | |
Hi everyone I have a final exam for my Java class tomorrow and wondering if anyone could tell me if my answers are right? The questions are True/False. Thank you all! 1. True/False — An interface may only contain method headers. 2. True/False — An interface may not contain instance … | |
I was given a programming exercise which calls to: "Write a program to create a file named Exercise09_19.txt if it does not exist. Write 100 integers created randomly into the file using text I/O. Integers are separated by spaces in the file. Read the date back from the file and … | |
I am supposed to create a file that will generate 100 random numbers and then sort them. I am stuck on the sorting. I think it would be a really simple solution but i cant seem to figure it out. I have tried the arrays utility and creating a method … | |
Hi This is related to 3 threads: http://www.daniweb.com/software-development/java/threads/438729/recursive-ftp-listingmakingcreatingetc-access http://www.daniweb.com/software-development/java/threads/439941/recursive-ftp-listingmakingcreatingetc-access...-part-2 http://www.daniweb.com/software-development/java/threads/442142/recursive-ftp-listingmakingcreatingetc-access...-part-3 At first, I had NO clue where to even start. Over a couple of weeks, Ive slowly but surely started to make the process correctly but Im stumpped so (for the third time) ive thought of rewriting everything from sratch. … | |
hiii!! please help me!! I want to see my outputwindows in the form that I create it!!! like this: **run: C:\Users\vista.netbeans\7.0\var\cache\executor-snippets\run.xml:48: Cancelled by user. BUILD FAILED (total time: 2 seconds) ** this is all of things that java shows in output win!!! can you help me to see that's in … | |
I am trying to get at least 5 minimum values from an array of integer my code attached works but it skips few values public static void main(String[] args) { int array[] = {0, 1, 2, 1, 4, 5, 1, 7, 8, 1, 10, 11, 12, 13, 1, 15, 16, … |
The End.