35,618 Topics
![]() | |
I opened my control panel thinking to uninstall un-wanted softwares. but i saw 3 java se's install in my machine. the size of java 6 update 7 (371 mb)>the size of java 6 update 17 (147 mb). why is it so? why 17 is 50% less in size than 7? … | |
Hi guys, I'm still learning java and to code in general. How would i take a word, open a web browser, and define the word in google ? Is that even possible ? | |
i'm doing java exercise, their is 6 question and i had done 5. another 1 i tried all the alternative but still error. this code: [CODE] class __(1)__ { static ___(2)___ int MIDTEST = 30; public static void main(String [ ] args) { int a=15, b=10, quiz, ___(3)___; Course ____(4)___ … | |
there are 3 classes letterd, letteru, letterh. each class uses loops to print asterisks in the form of letter d, u, h. each letter has two charateristics width and height. the constructor of each class accepts two integer parameters that correspond to height and width. each class also has a … | |
hi im am working on assignment and i would like to give a Jbutton an integer value i have delcared the buttons using an array (8 buttons in total) but i would like to give each button a diffrent value eg button 1 = 32 button 2 = 44 | |
Hello I want to implement this function: boolean check(String str,String exp) that gets a string, and an expression and see if it mathches. But (!), according to a format by '*' (maybe similar to the SQL LIKE statement, but with * instead of %). Examples of tests of this function … | |
Regarding the title, i want to know the exact way to writing text data to a text file on a web server using http connection in J2ME. I tried the way as below: OutputConnection connection=)OutputConnection)Connector.open("http://localhost/message.txt;append=true",Connector.WRITE); OutputStream out=connection.openOutputStream(); PrintStream output=new PrintStream(out); output.println("Testing"); out.close(); the codes have no problem and no exception. … | |
Hey guys, I've been looking around the web but can't find a definite answer for this one. I have a program I'm making and I want to cut down my lines by using an array and just have it create my lines for me. I have this set up [code] … | |
[code] import java.util.*; public class Homework11 { Scanner input = new Scanner(new File("keyvalues.txt")); Map<String, Integer> wordCountMap = getCountMap(in); for (String word: wordCountMap.keySet()) { int count = wordCountMap.get(word); while (input.hasNextLine()) { line = input.nextLine(); numLine++; Scanner word = new Scanner(line); while (word.hasNext()){ String nextWord = word.next(); numWord++; numChar = numChar + … | |
Hello there. It's me again. I think I got most of the Pseudorandom code fixed but there's a problem. [CODE]// Name: Wesley Montgomery // Assignment 1 (Pseudorandom Class) // CS 211 (5:30 PM-7:40 PM) // Craig Niiyama // This class creates a Pseudorandom Number as well as returns the number … | |
In jboss, if i use localhost to access the application then its working and if i use ip address its not working why !!!!!!!! can anybody suggest ? | |
I have a Photoalbum class and a Photo class. The Photoalbum class obviously holds a bunch of photos in an array. Each photo has a subject, location, date, and path. I need to make a method to search for a a photo with a certain String path. I tried: [code] … | |
[CODE] maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH); System.out.println(maxDays); [/CODE] When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated | |
Hi I am Making a horse racing application .... and the concept is when you enter a number in the textfield and select a horse(one of the 8 jButtons) the application will randomly select one of the JButtons and if the Jbutton is the same as the one selected by … | |
[CODE] public class TicTacToeGame { public static final int board_size = 3; // number of rows or columns in the board public static void main(String[] args) { char board[][] = new char[board_size][board_size]; // the game board TicTacToeGame p1 = new TicTacToeGame(); // create the players TicTacToeGame p2 = new TicTacToeGame(); … | |
Hi guys I'm completely new to programming, but would like to learn how to create crosswords in j2me, can someone help me with a source code...thanx:) | |
Is it possible to programmatically determine the currently installed graphics driver in windows, Mac, or Linux? methinks to check the system registry for windows. If so, where and what about the other OS? Major props to anyone who can answer this one :P Thanks | |
i am working on Deque class which is wrapped arond array....jus like the circular array works. How can i prompt the user to decide the size??? | |
Hi......... Can u tell me SQL query to retrieve UNICODE Strings from the database................... Specifications........ 1] Language JAVA::: a) JAVA SWING applet b) JDBC-ODBC Bridge 2] Database a) MS Access b) Datatype :: TEXT Thanks in advance | |
Hi, i have a hw assignment and i need help. I have done the first class already which is the city class. Heres what i got: [code]public class cityclass{ private String cityname; private int days; private double cost; private float rating; public cityclass(String newcityname, int newdays, double newcost, float newrating) … | |
I have to have Tetris made in Java in 3-5 weeks, but I haven't started, and have no idea how to start. I'm not asking anyone to make the game for me, I just need a general idea of what to do to get things rolling. Firstly, what classes should … | |
I need help fixing my telephone keypad application, it will compile but when I run it, it doesnt work someone please help | |
![]() | Hi everyone, hope all is well I have a project which models an ATM machine. There needs to be an option in the welcome screen where the user has the option to set all of the numeric buttons in each class to a certain colour(red, blue or yellow). Because all … |
I am trying to override setColour in the subclass callled ObjectB in the public void setColour(Colour xColour) method. So the OBjectB cannot change to purple. Can you see where I have gone wrong because the ObjectB is currently changing to purple colour. Please reply only if you know the answer. … | |
Hi......... can u tell me how to use rs.getUnicodeStream(1); where rs is ResultSet Object and 1 is the column number and what type of value it retrieves from the DATABASE | |
[code=java]package jee5study.exercise.disboard.servlet; import java.io.*; import java.net.*; import java.util.*; import javax.servlet.*; public class Board implements servlet { private String SvName; private Date Started; public void init(ServletConfig config) { SvName = config.getServletName(); Started = new Date( (java.lang.System.currentTimeMillis())); System.out.println("Servlet: " + SvName); System.out.println(" Started: " + Started.toString()); } public void destroy() { Date … | |
I need a java code for downloading files from the internet ..For example I want to download doc,pdf files from the internet means i have to do it through my code ..So can anyone help me | |
Hello and thanks in advance for your time. Trying to learn how to throw App Exceptions. Is there any way to get this exception from properties so I can pass it to a JOptionPane? Model Resources UserException=Subscription failed. \ Please try another email address. ProfileException=Must Select a Profile \ UnenrollException=Unsubscription … | |
Okay so I'm supposed to write a report describing the classes and interfaces I will use to implement a popular online photo management system called flickr ([url]http://www.flickr.com/[/url]). I don't need to implement any method but just figure out the design based on [url]www.flickr.com/tour[/url] section of this site. I must have … | |
I have a variable that contains the name of another variable. I intend to read the contents of the variable name. how? |
The End.