35,619 Topics

Member Avatar for
Member Avatar for vivekH

Is string primitive value in java? What is difference between primitive value and primitive data type in java? Thanks in advance.

Member Avatar for JamesCherrill
0
87
Member Avatar for KetraCoder

Row 1[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 2[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 3[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 4[ …

Member Avatar for Slavi
0
283
Member Avatar for asif49

Example of problem: Pattern one is: 1, 10, 1: 1 Pattern two is: 10, 10, 10: 0 From this extremely simple pattern we will know that a small value followed by a large increase and then a large decrease means it is a 1. Otherwise its a 0. Using something …

Member Avatar for mike_2000_17
0
319
Member Avatar for Amit_25

hii I have a list having m1 m2 m3........ m922 and in each there are a1 a2 a3 a4 are there like m1=a1 a2 a3 a4 a5 a6 m2=a1 a2 a3 a4 a5 a6 m3=a1 a3 a5 a7 a8 a2 etc and i want this as m1=a1 a2 a3 a4 …

Member Avatar for Slavi
-1
98
Member Avatar for erictheonly1

Hello i need some help on what to add to the following if statement for the out put to read the value of sum times the actual number of sum: public class ICMA42 { /* instance variables */ private int alpha; private int bravo; private int sum; /** * Constructor …

Member Avatar for JamesCherrill
0
186
Member Avatar for ankit.pandey3

Hi Friends, I have tomcat 7 and eclipse. My problem is when I start tomcat without war file it starts successfully but when I am Adding my war file by right clicking on Tomcat Server in eclipse, it gives in following exception : java.lang.RuntimeException: Unable to scan WEB-INF for JAX-RS …

0
364
Member Avatar for erictheonly1

public class ICMA42 // instance variables - replace the example below with your own private int alpha; private int bravo; private int sum; /** * Constructor for objects of class sum which initialises sum to 0. */ public ICMA42() { this.alpha = 0; this.bravo = 0; this.sum = alpha + …

Member Avatar for erictheonly1
0
2K
Member Avatar for Jatin_2

Following Error is shown well going to DGFT India Site. How to Resolve ERROR WHILE SENDING OUTPUT access denied ("java.net.SocketPermission" "164.100.128.143:8100" "connect,resolve")

Member Avatar for JamesCherrill
0
116
Member Avatar for infiniteloop56

Hey Guys, I am building app using a huffman tree, and am building this java program to just test a few things and I am having some trouble. I have everything working except that I am having troble decompressing a huffman string back into the original string. I would appreciate …

Member Avatar for Taywin
0
973
Member Avatar for redtribal23

Is there a way to calculate large numbers without using BigInteger? I am calculating an exponent without using the math class.

Member Avatar for cool_zephyr
0
85
Member Avatar for Krazykado

I am having problems with it continuous loop at the end of the program. Any help would be appreciated. Thank you. Below is the coding so far. [CODE]import static java.lang.System.out; import java.util.Scanner; import java.io.*; public class Investment { public static void main(String[] args) { double principal = 0; double interest …

Member Avatar for JamesCherrill
0
1K
Member Avatar for divinity02

hi all I have a question. I am still trying to build this game/program but I declared a console and was told to import it which i did, the problem is that I am constantly getting an error line underneath the console, can u guys tell me why is that. …

Member Avatar for JamesCherrill
0
166
Member Avatar for GoneGirl

Hi, If you look trough my code you can see that i have tried to print out some values (the mean value) with a scanner from a csv file with the help of an enhanced for loop (the absolut last loop) and it gives me NaN (not a number). And …

Member Avatar for GoneGirl
0
618
Member Avatar for redtribal23

I am trying to convert my code into generic and I get an error at o1 + o2 stating that cannot find symbol for o1 and o2 then bad operand types for binary operator on the push(pop()+ pop()). public abstract class MyStackGeneric <E> extends ArrayList <E> { protected abstract E …

Member Avatar for JamesCherrill
0
110
Member Avatar for EarhawkPH

Hi! Newbie Java Programmer here! I've done a cash register program. this error's pretty unusual to me. i dont know how to fix this. import java.text.*; import javax.swing.*; import java.awt.*; public class CashRegisterV1 { public static void main (String[] args) { DecimalFormat fix = new DecimalFormat("0.00"); //QUANTITIES int Nido = …

Member Avatar for JamesCherrill
0
239
Member Avatar for vigneshnayak29

i have written a connectivity code for ms access to jsp but i get a error message root cause "java.sql.SQLException: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application"

0
85
Member Avatar for stephen.hare.7503

so i need help on Modifying the source code to sort on the Title (in ascending order) and display the book title, comma space, author’s first name, comma space, author’s last name. Ensure all your variable names are appropriately named. and i also need help Modifying the source code to …

Member Avatar for stultuske
0
129
Member Avatar for samisallaj

I'm trying to use this code, but it will only display the image in jtextpane and it does not display the text. JLabel label = new JLabel("<html>some text here<img src='http://www.yoursie.com/image.jpg'></html>"); then using this label in JTextPane.

Member Avatar for samisallaj
0
292
Member Avatar for rakibtg

in java jframe swing how i can use system default scrollbar style? eg. the default style looks like [this](http://i.imgur.com/3wrBufN.png).

Member Avatar for JamesCherrill
0
166
Member Avatar for rayan22

double sum = 0; double d; for (d = 0; d < 10; d = d + 0.1 ) { sum = sum + d; } The program has a syntax error because the semicolons in the for loop are in the wrong place. The program has a syntax error …

Member Avatar for Priyanka_9
0
231
Member Avatar for divinity02

I have one question, when you want to add a game round in a java game, how do you do it, do you use the round().method or do you simply put (round++) + 1?

Member Avatar for JamesCherrill
0
370
Member Avatar for moaz.amin.37

hello!I install tomcat server and set CLASSPATH variable `servlet-api` and my servlets running properly but when i compile and run my old program program of `java 2 SE` then it compile successfully but not run it prints an error message G:\Java>javac BinarySearchDemo.java G:\Java>java BinarySearchDemo Error: Could not find or load …

Member Avatar for JamesCherrill
0
231
Member Avatar for Shawn_5

Scanner input = new Scanner(System.in); String secretWord ; String guess, dash = "-", upWord; int numGuesses = 0; int numWord; final String SENTINEL = "!"; System.out.println("Player 2, please look away. Player 1, please enter the secter word: \n"); secretWord = input.next().toUpperCase().trim(); numWord = secretWord.length(); for(int dashNum = 1; dashNum < …

Member Avatar for cool_zephyr
0
149
Member Avatar for My_1

Hello, I have problem with jbotton. I have botton decalre it. but how do i access it ? because I have 10X10 or 100 botton. let i want to access 95 botton how can i do that? how do i set the title? here is code import java.awt.*; import javax.swing.*; …

Member Avatar for JamesCherrill
0
328
Member Avatar for nitin1

I have learnt basic android in the last month. I have learnt about fragments, listview, adapters, acitivties, intents, content providers, databases, animations. I want some basic apps' ideas in which I can implement these things and can improve my learning? I am not too good in Java also. I know …

Member Avatar for Slavi
0
131
Member Avatar for jeram.burbon

I am trying to output how many students were processed, how many of the students had a February 29th birth date and the birthdate of the oldest student. I figured out how to output the first two except how to output the oldest student. is the ckOldestBirthDate and updateoldestBirthDate in …

Member Avatar for stultuske
0
529
Member Avatar for infiniteloop56

Hi guys, I have some what of a quick/dumb question. How would one traverse a binary search tree using a loop instead of recursion (An algorithm would be vwry useful if possible)? I appreciate any help . Thanks

Member Avatar for JamesCherrill
0
5K
Member Avatar for mc3330418

I'm trying to update an input value using jquery and I can't get it to do anything. I've tried .val(), .attr, .html, .text. $('#acctnum').click(function(){ var index = this.selectedIndex; var bal1 = $('#bal1').val(); var bal2 = $('#bal2').val(); var bal3 = $('#bal3').val(); var bal4 = $('#bal4').val(); if (index == 0){ $('#poamnt').val(bal1); alert …

Member Avatar for cool_zephyr
0
165
Member Avatar for Leo_5

How to rollback the transaction while spring controller has runtime exception... i found some snippet from google i.e, @Transactional(rollBackFor = Exception.class) I think this only applicable for service class has the exception. I need to rollback controller class has any exception. forexample @controller public class test1 { public void testing() …

Member Avatar for cool_zephyr
0
803
Member Avatar for anubhavat

Hi, i want to submit list of object of selectted check box and want to receive same object in controller from jsp. Jsp Code-><form name="multiCheckBox" method="post" action="multiCheckbox.html"> <table> <th>Below are the list of items with status</th> </tr> <tr> <td>Select</td> <td>Print Strip</td> <td>Planogram DB Key</td> <td>Planogram Name</td> <td>Planogram Description</td> <td>Status</td> <td>Print …

Member Avatar for anubhavat
0
202

The End.