Posts
 
Reputation
Loading chart. Please wait.
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~12.3K People Reached
Interests
guitar
Favorite Forums

23 Posted Topics

Member Avatar for ilovejava

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 …

Member Avatar for JamesCherrill
0
323
Member Avatar for WH88
Member Avatar for ilovejava

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?

0
80
Member Avatar for ilovejava

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(); …

Member Avatar for ztini
0
251
Member Avatar for ilovejava

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

Member Avatar for designuts
0
2K
Member Avatar for Glass_Joe
Member Avatar for ilovejava

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]

Member Avatar for rubberman
0
114
Member Avatar for ilovejava

[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 …

Member Avatar for NormR1
0
304
Member Avatar for ilovejava

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); } …

Member Avatar for ilovejava
0
207
Member Avatar for sonicx2218
Member Avatar for ilovejava

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 …

Member Avatar for ilovejava
0
231
Member Avatar for ilovejava

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 …

Member Avatar for stultuske
0
421
Member Avatar for DaniwebOS

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"); …

Member Avatar for DaniwebOS
0
212
Member Avatar for ilovejava

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 …

Member Avatar for Slimmy
0
201
Member Avatar for lovelyrockrchic

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 …

Member Avatar for hiddepolen
0
278
Member Avatar for ilovejava

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 …

Member Avatar for Taywin
0
685
Member Avatar for ilovejava

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

Member Avatar for ilovejava
0
180
Member Avatar for xiangzhuang
Member Avatar for JamesCherrill
0
292
Member Avatar for ilovejava

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???

Member Avatar for JamesCherrill
0
273
Member Avatar for ilovejava

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 …

Member Avatar for ilovejava
0
2K
Member Avatar for heybunny

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, …

Member Avatar for ilovejava
0
2K
Member Avatar for ilovejava

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[]){ …

Member Avatar for NormR1
0
400
Member Avatar for ilovejava

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 …

Member Avatar for NormR1
0
1K