Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
java x 37
Member Avatar for l_03

hello guyzz,,i really need your help,,we are about to make a mastermind game in java,,i already have the code,,,but it has no main method..and i dont know how to implement the main,,help guyzzz,,,we are about to pass it next week.... import java.awt.*; import java.lang.Math; public final class mastermind extends java.applet.Applet …

Member Avatar for Genni
0
235
Member Avatar for l_03

[code] public String preOrder(int nodeIndex) { if(nodeIndex>nodeArray.length) { return(null); } else if(nodeArray[nodeIndex].isLeaf(nodeArray.length-1)) { return(nodeArray[nodeIndex].toString()); } else { return(nodeArray[nodeIndex].toString()+" "+preOrder(nodeArray[nodeIndex].leftChild)+" "+preOrder(nodeArray[nodeIndex].rightChild)); } [/code] I am really stack with it. I dont how to output the numbers i input. If i input: 1 2 3 4 5 6, it only outputs 1 …

Member Avatar for sillyboy
0
100
Member Avatar for l_03

[code] package Sorting; import javax.swing.JOptionPane; public class Sorting2 { public static int s[] = new int[100]; public static void main(String[] args) { String ask = ""; for (int i = 0; i< 5;i++){ ask = JOptionPane.showInputDialog("Enter: "); s[i] = Integer.parseInt(ask); System.out.println(s[i]); } for (int x = s.length-1; x>= 0; x--) …

Member Avatar for JamesCherrill
0
129
Member Avatar for l_03

[ICODE] import javax.swing.*; public class Tokenize{ public static String s[] = new String[100]; public static void main (String args[]){ String ask = JOptionPane.showInputDialog("Enter:"); isAsk(ask); } public static void isAsk(String ask){ StringTokenizer st = new StringTokenizer(ask," ",false); int input = Integer.parseInt(st.nextToken()); if(input<=10&&input>=0){ System.out.println(input); } } } [/ICODE] Here is the sample: …

Member Avatar for verruckt24
0
165
Member Avatar for l_03

[CODE] import javax.swing.*; public class A { public static void main (String args[]){ String ask = JOptionPane.showInputDialog("Enter"); if(ask.equals("hello")){ System.out.println("ok."); main(args); }else if(isRepeat(ask)){ System.out.println("Invalid,string has been repeated."); System.exit(0); } } public static boolean isRepeat(String ask){ if(ask.equals("hello")){ return true; }else{ return false; } } } [/CODE] Hello, I am having problems with …

Member Avatar for ahihihi...
0
169
Member Avatar for l_03

import java.io.*; import java.util.*; import javax.swing.*; import java.util.StringTokenizer; public class Sample { public static int count = 0; public static String s[]=new String[2]; public static String s2; public static String s3; public static void main (String args[]) throws IOException{ isRead(); } public static void isRead()throws IOException{ int count2 = 0; …

Member Avatar for verruckt24
0
108
Member Avatar for l_03

[ICODE] import java.io.BufferedReader; import java.io.FileReader; import TokenizerProcess.StringTokenizer; import javax.swing.JOptionPane; public class ReadFile { public static int count = 0; public static String[][]file = new String[6][3]; public void isReadFile(){ SubjectInput input = new SubjectInput(); try{ BufferedReader reader = new BufferedReader (new FileReader("SubjectFiles/subjects.txt")); String line; while((line = reader.readLine())!=null){ StringTokenizer tokenFile = new …

Member Avatar for ~s.o.s~
0
142
Member Avatar for l_03

hello guyz,,i just want to ask if you know a site that have a free ebook that would explain best the data structures..we have a problem to code..and it is about queues,,and sorting,,and i hope to find a best ebook that will explain best about the sorting and the queues,,,thanks …

Member Avatar for verruckt24
0
140
Member Avatar for l_03

hello...i am confused,,it is possible that a linkedstack will be full??i only implement a method that isEmpty(),,and it reads the method if the stack is empty..but if the stack is full, it do not even read the method i made....would someone help me?/,,,thank you ahead...

Member Avatar for ~s.o.s~
0
124
Member Avatar for l_03

help guyz...our teacher recommend us to download the "source code" of eclipse. jcreator, net beans, and bluej,,, i am either confused,,,,what are the source codes of this four????are these the .java file???help guyzz,.....i cant seem to find their source codes since i dont even get the idea of what are …

Member Avatar for jbennet
0
116
Member Avatar for l_03

guyzz...do you know best tutorial in JOptionPane??especially with their dialog features,,,i really want to make a program,,that can be look a like as GUI Application,,,using only JOptionPane...i hope you can help me guyzz....thank you...

Member Avatar for stephen84s
-1
104
Member Avatar for l_03

can someone help me how to make attempts in pin numbers...for like example,,if the user input three times of a wrong pin number,,then the program will exit..help me..this is not really my whole code... if (pinNum2== bank.arrAccount[2][0][0]){ String w = JOptionPane.showInputDialog("How much you want to withdraw?"); int withdrawAmount =Integer.parseInt(w); bank.withdrawCash(withdrawAmount); …

Member Avatar for peter_budo
0
98
Member Avatar for l_03

i dont know how to solve this problem,,it seems that i dont know how to fixed this error Exception in thread "main" java.lang.StackOverflowError please helped me,,im stack on it,, i just have a class public class ATM{ BankAccount bank = new BankAccount(); SavingsAccount savings = new SavingsAccount(); CheckingAccount checking = …

Member Avatar for stultuske
0
757
Member Avatar for l_03

hello guyzz,,,i am almost finished with my code,,but our teacher require us to access a text file..this is it: in my text file: accountList.txt 12345 1234 200000 Jerry Lopez first column was accountNumber, then the pinNumber, then the balance and the name.. what i did was... import java.io.*; public class …

Member Avatar for l_03
0
213
Member Avatar for l_03

actually,,this is not my whole code..i just post the important one,,i am having problem with my code....i dont know how to figure out,,, everytime i am trying to withdraw and deposit..,,the balance will always be zero,, and i dont know how to figure it out.... [code] import javax.swing.*; public class …

Member Avatar for BestJewSinceJC
0
156
Member Avatar for l_03

guyzzz,,,help,,i dont know how to call a variable from other class,,could you help me,,huhuhuh,,,i really need your help... i have a class,, this is just a summary... public class BankAccount{ int accountNumber[] = {1234, 2345}; public class ATM{ BankAccount bank = BankAccount(); String accountNum; int accountNum2; accountNum = JOptionPane.showInputDialog("Please enter …

Member Avatar for l_03
0
108
Member Avatar for l_03

hello guyz,, i am really confused,,,we are about to make a program in java,,,we are making an ATM,,,however i am confused because i only have a transaction in ATm once and i dont remember much because it was 3 years ago... before i start,,i want to ask... what is in …

Member Avatar for stultuske
0
135
Member Avatar for l_03

hello guyz,,i have confusion anyway,, i have a textfiles (products.txt & cart.txt): "products.txt" inside this text file is Alcohol $12.7 12 Shirt $45.00 34 if i run it to a java file it would be like this actually i already know how to read the file,,and when i output it: …

Member Avatar for masijade
0
107
Member Avatar for l_03

hello guyz,,do you have any sites to recommend for me on tutorials??? we are about to make a code on shopping cart,,but it's not that easy,, our list of products and shopping cart are stored in a "text file",,which is accessed by the "java file",,to access,,we should use the import …

Member Avatar for sbhavan
0
156
Member Avatar for l_03

hello guyz,,do you know any best sites that could help me making codes in "shopping cart"??hope you can help me.thank you ahead...

Member Avatar for sbhavan
0
237
Member Avatar for l_03

hello guyz,,do you know best sites to recommend on : tutorials about reading a file ("text file") and writing it in "java file?? in short reading or writing files in bufferedreader.. thank you ahead guyzz..

Member Avatar for peter_budo
0
184
Member Avatar for l_03

hello guyz,,do you know best sites to recommend that has a tutorials on "swing" about: a.) sample writing a file on "text file" b.) the saved text file will be read by the main class in JOptionPane (java file) actually, i has on it on bufferedreader,,but i really like to …

Member Avatar for peter_budo
0
205