32,199 Topics

Member Avatar for
Member Avatar for somjit{}

whats even more is that if i create any new file in the "src" folder of the project , it doesnt create any new bin folder to place the class file. i dont know where the class files are of the compiled source code . only when i manually `javac …

Member Avatar for somjit{}
0
4K
Member Avatar for Trap910

I am new into the computer Science..I just completed reading and understing the C programming language..I think am quite decent in it..Now I want to start studying a new programming language this semester, before I start, I want to get some advice from the experts, should I choose Java or …

Member Avatar for vegaseat
0
282
Member Avatar for RinzLove

Hi all, Really appreciate your help if my function on dijkstra algorithm is correct or wrong? Many thanks... Function Dijkstra(Graph, source): Graph randomGraphGenerator = new Graph: Source V0 = new Source: for each vertex n in randomGraphGenerator: // initializations weight[n] := infinity // Unknown path // function from source to …

Member Avatar for JamesCherrill
0
200
Member Avatar for durgesh1

hello all i tried to fetch data from databse and try to stored it in an array and i want to compare new value that come from database with array if this new value is already stored in this array i like to executed new query if not in array …

Member Avatar for durgesh1
0
238
Member Avatar for Rampee

Hi Dude, I need to design an application similar to windows media player. Many suggested to me JMF but my actual need is it should be exactly same as windows media player. In my swing window, I should have the capability to add/edit playlists. If double click it should get …

Member Avatar for JamesCherrill
0
123
Member Avatar for techyworld

Hi i need some help, how to unit test a DAO? here my code: @Transactional public class ProjectDaoImpl extends HibernateDaoSupport implements ProjectDao { Log logger = LogFactory.getLog(this.getClass()); private String message; /** * {@inheritDoc} */ public List<User> retrieveAll() { return this.getHibernateTemplate().loadAll(User.class); } /** * {@inheritDoc} */ public boolean saveOrUpdateUser(User user) { …

Member Avatar for techyworld
0
147
Member Avatar for MasterHacker110

I am trying to read all the files in a folder, if the file name == that of the name the user entered, the text of a button (that when on clicked will open the file) will be set to the file name. But my code for some reason doesn't …

Member Avatar for MasterHacker110
0
273
Member Avatar for moone009

I would like split to some how split each item in the arry and sort it by Id[1] and then date[2] Been doing a fair amount of reading and cannot seem to figure this one out. Name,ID,Date John,432,2012-03-21 04:32:00 AM Bob,532,2012-01-01 12:12:00 AM Mike,932,2012-01-11 11:42:00 AM Mike,932,2012-05-01 12:13:00 AM John,1532,2012-01-11 …

Member Avatar for JamesCherrill
0
194
Member Avatar for darkenmac

Hey guys, I'm tring to develop an android application which will solve differentiation and intgration problems and show the steps to solving it. Like a learning tool for students. But the thing is i cant find a algo which will help me on solving integration. can u guys please help …

Member Avatar for DarkLightning7
0
136
Member Avatar for MasterHacker110

Ok so I have this problem: A friend that does a lot of online banking wants to keep track of their activity, so they save the "information" in a .docx file every time they are done. Now recently they have so many files that it is a hassle to search …

Member Avatar for MasterHacker110
0
174
Member Avatar for laguardian

Hey guys! I have this program I'm working on, but I keep getting an error in my main class. Here's what I have: import java.util.Scanner; public class TicketingSystem { public static void main(String[] args) { Game game = new Game(); Scanner input = new Scanner (System.in); String teamName; game.addTeam(new Team(teamName)); …

Member Avatar for somjit{}
0
138
Member Avatar for globaladchennai

this is Kavi ,i am doing MCA in Madras university, looking for best java base ieee project center in chennai,could any one help

Member Avatar for somjit{}
-3
196
Member Avatar for bob.henry.1884

//****************************// //*****DO NOT TOUCH THESE*****// //****************************// import java.util.*; import java.io.*; public class NumberGuessingGame{ public static int num; //variable to hold randomly generated number public static int guess; //variable to hold user inputs public static String ans; //variable to hold user input for y/n public static int guessnumber = 7; //variable …

Member Avatar for bob.henry.1884
0
250
Member Avatar for dalawh

I want to add different Enums to a single JComboBox. Here is how the code looks like. Type contains 3 different type of Enums(Colors, Shapes, Dimensions). final JComboBox typeJComboBox = new JComboBox(Type.Colors.values()); for(Type.Shapes shape: Type.Shapes.values()) { typeJComboBox .addItem(shape); } for(Type.Dimensions dimension : Type.Dimensions.values()) { typeJComboBox .addItem(dimension ); } What generic …

Member Avatar for JamesCherrill
0
790
Member Avatar for rwagnes

I am working on a class assignment in Java. According to the teacher's notes, a method in a sub-class that overrides the parent's method should be bold in the class diagram. I am using Visual Paradigm to create the class diagram, but I can't figure out how to bold a …

Member Avatar for jerry mcmartins
0
129
Member Avatar for sankubha
Member Avatar for JamesCherrill
0
394
Member Avatar for murali2489

Hi All, In MY GUI app, inside JFrame, i need to put two rows 8 column components first and then below i need to put one button in the center . I created one Jpanel having 2*8 grid layout and placed the components for two rows there and have put …

Member Avatar for murali2489
0
245
Member Avatar for Vaspar

Hello, I have made android application which provides remote desktop administration, I used port 5556 and socket programming TCP. I have to forward this port from router on every computer is there any other way so I can use some open port to communication with android device?? Like TeamViewer doesn't …

0
169
Member Avatar for crestaldin

[COLOR="navy"]I am trying to write a code to count the frequency of characters in a String; For example if I have String str = new String("This is a test"); I want to count the number of occurrence of each character in the string.(assuming the code is case insensitive) This is …

Member Avatar for JamesCherrill
0
429
Member Avatar for andre.gartner.56

I'm having quite a few errors on this one. This is my first attempt on "free" coding outside tutorials. I do believe it only has to do with bad use of brackets from my side, but i'm a beginner. Line 14 - Illegal start of expression Line 18 - Class, …

Member Avatar for JamesCherrill
0
155
Member Avatar for Peter_Aye

Hi. Please could anyone help me look at this code and tell me why the image is not getting drawn? I have already cross-checked the path, and it is alright, as it does not throw any exception. Thanks in advance. class PotPanel extends JPanel{ public PotPanel(int width, int height){ Dimension …

Member Avatar for mKorbel
0
263
Member Avatar for Stuugie

Hi All, I'm trying to loop through and open PDFs in a folder using Java. I have the following code: import java.awt.Desktop; import java.io.File; import java.io.IOException; public class OpenPDFs { public static void main(String[] args) throws IOException { // TODO code application logic here String fp; fp ="S:\\Economic Forecasts\\Fcst13\\SourceForecasts\\"; File …

Member Avatar for Stuugie
0
583
Member Avatar for sankubha

I have renderer a JPanel at the fourth column of my JTable. I need to draw an image Dynamically. I have used this code to get the component...... at certain row and column..... JPanel cPanel = (JPanel) jTable.getCellRenderer(0, 4).getTableCellRendererComponent(jTable, jTable.getValueAt(0, 4), false, false, 0, 4); Graphics graphics = cPanel.getGraphics(); When …

Member Avatar for sankubha
0
232
Member Avatar for RinzLove

Hi all, I've a problem fixing the syntax error. I'm doing a function, randomGraphGenerator(int n) that will generate non-negative weighted complete graph with n vertices. Could you help me out on this. Many thanks in advance... public class randomGraphGenerator { private final int n; private int E; Private Bag<Edge>[] adj; …

Member Avatar for JamesCherrill
0
333
Member Avatar for jakarias
Member Avatar for jwenting
0
199
Member Avatar for cool_zephyr

how to make a bean application scoped so that it will persist as long as the web application is running??? and how can we access it in our controller?? thank you

Member Avatar for masijade
0
216
Member Avatar for Petranilla

Hi Everyone, I'm doing a 2D PAcman in Java. Can anyone tell, why the screen gets mess up when I display the moster. I simply use set bound enemy.setBounds(x1,x2,50,50); How do I manage to include the monster without destroring the scren. Many thanks.

Member Avatar for Petranilla
0
713
Member Avatar for akhilchandranms
Member Avatar for jakubee

Hi All, I have a question. Is adding/filling range numbers to an ArrayList possible in java?? Like this: {<12345, 13455>, <12745, 13755>, <2345, 2755>, <5345, 9455>, <2700, 5240>, <345, 13455>, <11345, 13000>} You can think of these like time segments. Here is the class to give you brief idea import …

Member Avatar for tux4life
0
367
Member Avatar for navi84

I am geeting syntax errot insert while ( expression ) to complete Do statement. Please help...Below is the complete coding in Webdriver. @Test public void testUntitled() throws Exception { driver.get(baseUrl + "eforms/admin.aspx"); driver.findElement(By.cssSelector("button.gskButton")).click(); new Select(driver.findElement(By.id("ctl00_PersonSearch_CountryList"))).selectByVisibleText("Russian Federation"); driver.findElement(By.id("PersonSearch.SearchFor.Person.gskPreferredName")).clear(); driver.findElement(By.id("PersonSearch.SearchFor.Person.gskPreferredName")).sendKeys("slawomir"); driver.findElement(By.id("btnPersonSelectSearch")).click(); driver.findElement(By.id("btnPage1")).click(); driver.findElement(By.id("sys44708")).click(); new Select(driver.findElement(By.id("ctl00_pageBody_Form_ID"))).selectByVisibleText("Expense Report"); driver.findElement(By.xpath("(//button[@type='button'])[2]")).click(); // ERROR: Caught exception [ERROR: …

Member Avatar for jwenting
0
933

The End.