- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
23 Posted Topics
i have to do a pyramid with a pattern like this [iCODE] 1 1 2 1 1 2 4 2 1 1 2 4 16 4 2 1[/iCODE] i just realized dani web didnt take my center pyrmaid thing it moved to the side no matter what spacing i did … | |
So I want to parse a .dae collada file which is stored xml. Now to parse the file should I use the SAX or DOM parser. THe file size of the collada file ranges from 200kb-40mb files. Is the file too large for a DOM parser? | |
This is my code for adding and removing from a binary tree but apparently its not complete can anyone tell me what to do to make it complete tree? [CODE] public void add(IBinaryTreeNode<E> e) { if (getRoot() == null) { setRoot(e); } else { //SAME HERE IBinaryTreeNode<E> node = getLastNode(); … ![]() | |
Hi when I use ecclipse to run codes it shows many errors, and they are not errors at all I compiled them with command prompt and it work. this is the image [URL="http://i.imgur.com/az6Pg.jpg"]http://i.imgur.com/az6Pg.jpg[/URL] My java and javac version is 7 u 2 | |
Re: wow this is shocking i cant belive oracle is doing this | |
I have a question why is important to supress warnings in java, i notice my professor do that all the time [CODE] @SuppressWarnings("unchecked") [/CODE] | |
[URL="http://i.imgur.com/iwNHY.jpg"]http://i.imgur.com/iwNHY.jpg[/URL] i already set a path for jdk and etc, it worked before but now it doesnt work the code works on ecclipse so the code is correct but i have to learn how to compile using command prompt check out this image i get this same error i do … | |
I had to make a arrayList and i do not know why is it not working [CODE]public class ArrayList<E> { private E[] theArray; private int size; private int capacity; public ArrayList(int initialCapacity) { this.size = 10; this.capacity = initialCapacity; theArray = (E[]) new Object[initialCapacity]; } public ArrayList() { this(1024); } … | |
![]() | Re: break it up into chars and then compare it |
my objective is to implement an Java to HTML syntax highlighter. The program should works like this 1) It reads in any .java source code file 2) It parses the file for keywords, strings, numbers, etc. 3) It outputs HTML markup of the source code 4) When you open the … | |
This is a frighteningly subtle bug I first learned about in C (Andrew Koenig's ``C Traps and Pitfalls''), but it's still with us in Java, and I assume C++ as well... The following method looks like it should always return the absolute value of n, but every once in a … | |
Re: i made my own version for calendar use zongrens congruence theorem for days and it works [CODE]import java.util.*; public class Calendar { public static void main(String args[]){ int startingDay = 0,date,month,century,k,year,sub1,sub2,sub3; String monthS = ""; Scanner key = new Scanner(System.in); System.out.println("enter year: (eg 2008)"); year = key.nextInt(); System.out.println("enter month 1-12"); … | |
hey guys I need help to implement a array list I have the skeleton structure written out but some of the methods do not work and I have troubles with the remove method please help and how do you do isEmpy method [CODE]//tried my best dont get some stuff public … | |
Re: ok look at this pattern of arrays[row][column] Case 1: (hint] set a loop and if statement [0][0],[0][1],[0,2] == win [1][0],[1][1],[1,2] == win [2][0],[2][1],[2,2] == win Case 2: (for loops and if statement) [0][0],[1][0],[2,0] == win [0][1],[1][1],[2,1] == win [0][2],[1][2],[2,2] == win Case 3: no loops needed [0][2],[1][1],[2][0] [0][0],[1][1],[2][2] hope that … | |
so this is the assignment Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and … | |
lets say i have a grid----->grid[10][10] i want to scan the grid for a char 's' what should I do should I... do a enhanced for loop and how can any show a example | |
Re: delete the last else if for each method and put a else and ure done | |
lets say i have 8 deck of cards how to put all of that inside a array do i have to make a multidimensional array for each deck??? | |
hi i started coding battle ship when i was done i noticed that the user and computer always misses, even if they hit, i dont know what i did wrong [CODE]import java.util.Scanner; public class Battleship { public final static String USER = "user"; public final static String COMPUTER ="computer"; public … | |
Re: ok i edited ur code a bit this is what i did [CODE]import java.util.Scanner; public class RockGame { private final static int ROCK=1; private final static int PAPER =2; private final static int SCISSOR =3; public static void main(String args[]){ double playerOneScore = 0; double computerScore = 0; int userPlay, … | |
An emirp (prime spelled backwards) is a prime number that results in a different prime when its digits are reversed.[1] This definition excludes the related palindromic primes. Emirps are also called reversible primes. this are the list of emirps [url]http://oeis.org/A006567/list[/url] [CODE] public class EmirpProgram { public static void main(String args[]){ … | |
i have to write a program that displays the value of pi for values for i = 10000,20000.....,and 100000 i have to use the following series pi = 4(1-(1/3)+(1/5)-(1/7)+(1/9)-(1/11_+...+(1/(2i +1))-(1/(2i +1)) any ideas i have to do a program with looping i cant use arrays can someone give me a … |