Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~8K People Reached
PC Specs
Intel(R) Core(TM)2 Duo CPU p3750 @ 2.00GHz 2.00 GHz
Favorite Forums
Member Avatar for aabbccbryanmark

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Burger extends JFrame implements ActionListener { JLabel lblForAll, lblBelow, pic, pic1, pic2, pic3, pic4, pic5, pic6, pic7; JRadioButton rBtn, rBtn1, rBtn2, rBtn3; JCheckBox cBtn, cBtn1, cBtn2, cBtn3; JTextField txt, txt1, txt2, txt3, txt4, txt5; JButton btn1, btn2; ButtonGroup btnG; int ham=25, egg=15, …

Member Avatar for aabbccbryanmark
0
2K
Member Avatar for aabbccbryanmark

hi folks, im having a problem here on my code can't figure what's wrong.. so here's my code: import java.awt.*; import java.awt.Font.*; import java.awt.Color.*; import java.awt.Button.*; import java.awt.event.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import javax.swing.*; import javax.swing.JOptionPane; public class Calc extends JFrame implements ActionListener { JTextArea txtArea; static final …

Member Avatar for stultuske
0
545
Member Avatar for aabbccbryanmark

package prjarrays; import java.io.*; import java.util.Arrays; import java.util.Collections; class BubbleSorting { public static void main(String[] args)throws IOException { BufferedReader a = new BufferedReader(new InputStreamReader(System.in)); int []num = {54,92,04,98}; -> Arrays.sort(num, Collections.reverseOrder()); for(int str : num) { System.out.print(str + " "); } } } > cannot find symbol method sort(int[],java.util.Comparator<java.lang.Object>) why …

Member Avatar for Ezzaral
0
129
Member Avatar for aabbccbryanmark

import java.util.*; public class LinkedListDemo { public static void main(String[] args) { LinkedList link=new LinkedList(); link.add("a"); link.add("b"); link.add(new Integer(10)); System.out.println("The contents of array is" + link); System.out.println("The size of an linkedlist is" + link.size()); link.addFirst(new Integer(20)); System.out.println("The contents of array is" + link); System.out.println("The size of an linkedlist is" + …

Member Avatar for stultuske
0
249
Member Avatar for aabbccbryanmark

print "enter a number: "; $in = <>; chomp $in; print &prime($in); print "\n"; sub prime{ for($i=2;$i<($_[0]/2+1);$i++){ if($_[0]%$i ==0){return "not prime\n"} } return "prime\n"; } can anyonet tell me, what program do i use to make this code work?.. i just found it on the internet while searching a formula …

Member Avatar for gourav_rao
0
157
Member Avatar for aabbccbryanmark

i get this 'else' without 'if' error on this case: case 2: for(int i=0;i<currentRegisterdItems;i++){ System.out.println("#"+i+" - "+itemArray[i] + "\t\t\t" + priceArray[i]); System.out.println("Select products and add to cart - Simple Shop Software"); System.out.println("Enter the product id: "); int searchIdProduct = Integer.parseInt(a.readLine()); if(itemArray[searchIdProduct] != null){ System.out.println("Add "+itemArray[searchIdProduct]+" to your cart?"); System.out.println("Confirm: Y …

Member Avatar for JamesCherrill
0
115
Member Avatar for aabbccbryanmark

case 2: System.out.println(); ctr2=1; System.out.println("Select products and add to cart"); for(ctr=0;ctr<nList;ctr++) { System.out.println(ctr2 + ". " + itemArray[ctr] + " " + priceArray[ctr]); ctr2++; } System.out.println(); System.out.println("Enter the number of item you want to purchase: "); int itemPur = Integer.parseInt(a.readLine()); System.out.println("Choose the product you want to add to cart"); for(ctr1=0;ctr1<itemPur;ctr1++) …

Member Avatar for aabbccbryanmark
0
3K
Member Avatar for aabbccbryanmark

This is the error i get.. Enter employee name: Bryan Enter employee's salary: 123 Enter employee name: Mark Enter employee's salary: 456 Enter employee name: Fajutag Enter employee's salary: 789 Enter employee name: qwe Enter employee's salary: 32 Enter employee name: qew Enter employee's salary: 312 Enter employee name: qew …

Member Avatar for stultuske
0
425
Member Avatar for aabbccbryanmark

import java.io.*; public class QuizBee { public static void main(String[] args)throws IOException { BufferedReader a = new BufferedReader(new InputStreamReader(System.in)); int cor=0; System.out.println("\t \t \t \t \t \t \tWelcome to 10th Annual Quiz Bee of the Year"); System.out.println(); System.out.println("General Direction: In this question you are obligue to answer them honestly."); System.out.println("\t …

Member Avatar for aabbccbryanmark
0
191
Member Avatar for aabbccbryanmark

System.out.println("\t \t \tYou got " + (cor/10*50+50) + "%"); help me with this code.. i didn't get what's supposed to be the percentage.. what's wrong with it?.. i got 3 for cor and i should have 65% but i just get 50%..

Member Avatar for JamesCherrill
0
109
Member Avatar for aabbccbryanmark

public class asterisk { public static void main(String[] args) { int row, col, spc=3, spc1=2, spc2=1, spc3=0; for(row=1;row<=1;row++) { for(col=1;col<=1;col++) { for(spc=spc;spc>0;spc--) { System.out.print(" "); } System.out.print("*"); System.out.println(); { for(spc1=spc1;spc1>0;spc1--) { System.out.print(" "); } System.out.print("**"); System.out.println(); { for(spc2=spc2;spc2>0;spc2--) { System.out.print(" "); } System.out.print("***"); System.out.println(); { for(spc3=spc3;spc3>00;spc3--) { System.out.print(" "); } …

Member Avatar for stultuske
0
579
Member Avatar for aabbccbryanmark

print "enter a number: "; $in = <>; chomp $in; print &prime($in); print "\n"; sub prime{ for($i=2;$i<($_[0]/2+1);$i++){ if($_[0]%$i ==0){return "not prime\n"} } return "prime\n"; } is this code for c++ language?..

Member Avatar for WaltP
0
296
Member Avatar for aabbccbryanmark

can someone give me an idea how I limit the decimals in the output of this code: /** * @(#)Text1.java * * * @author Bryan Mark * @version 1.00 2012/8/4 */ import java.io.*; public class Converter { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); …

Member Avatar for aabbccbryanmark
0
138
Member Avatar for aabbccbryanmark

can someone please help me with this java application that will display the output below: "Enter Middle Name: Gosling" "You Middle Initial is: G" and also java program that will let the user to enter value for fahrenheit & convert it to celsius. can someone give me codes for this.. …

Member Avatar for aabbccbryanmark
0
158