- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
I'm here to learn about Java.
I use byethost as my webhost and my blog is powered by wordpress... the domain name is http://johannady2.byethost31.com/ it's 2 days now and there no claimed or unclaimed domains listed. why? |
|
When you enter "y" and try again. it doesn't asks you to "enter a String: " and "enter another String: " again. It just prints those lines out but you don't get to enter. Well~ you can enter 1 string again when it does the loop but I don't know … |
|
This is our longquiz from this morning. don't worry.. I am not cheating off a quiz.. it's already 22:00 o'clock where I am. this quiz was on 8am. I am studying for our final exam tomorrow. we weren't told the right answers.. and I don't have a book right now … |
|
I get this error. /*array dimension missing new ImageIcon [] = getClass().getResource(name[0]),*/ ^ and I dunno what's missing. and not sure if anything else is wrong because for now there are 4 erros for name[0],name[1],name[3],name[4] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.Container; import java.io.IOException; import java.io.*; import java.awt.BorderLayout; import … |
|
It compiles but my JButton won't work... when i run the applet and press the Exit button.. it just prints some errors(or i dunno what they are) in the black window that opens when you run the applet. import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; ; public class CheckRadioTest … |
|
This only does either BOLD or ITALIC... import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public class CheckRadioTest extends JApplet implements ItemListener { //private String CurrentComboName = "Select One"; private JLabel headingLabel; private int currentStyle = Font.PLAIN; //private int intBold = Font.PLAIN; //private int intItalic = Font.PLAIN; private … |
|
I tried to convert this GUI to a JApplet but then I get the error message. > D:\JAVA\PROGRAMS\whiteboard\whiteBoardapplet.java:9: error: whiteBoardapplet is not abstract and does not override abstract method actionPerformed(ActionEvent) in ActionListener > public class whiteBoardapplet extends JApplet implements ActionListener > ^ > 1 error > > Tool completed with … |
|
This is a JApplet. the Radio Buttons for colos work.. why won't the Checkboxes work? import java.awt.event.*; import javax.swing.*; import java.awt.*; public class CheckRadioTest extends JApplet implements ItemListener { //private String CurrentComboName = "Select One"; private int currentStyle = Font.PLAIN; //private int intBold = Font.PLAIN; //private int intItalic = Font.PLAIN; … |
|
After setting the time where it should start, you enter "y".. the timer will start.. It's supposed to stop whenever you want it to by pressing "n" but I don't know how.. The only way I know how to get it to ask for "y" or "n" again is to … |
|
This is an attempt to stop the timer in this code: [Click Here](http://www.daniweb.com/software-development/java/threads/422817/how-do-i-stop-this-timer#post1805134) I just learned threads but I'm not sure if I'm using it right.. It doesn't have any erros when I compile it.. but it still doesn't stop the time. the clock starts when you enter "y" though.. … |
|
WHEN I put void in this method.. it says *"void type not allowed here"* in my if statement. but when I erase the void in my method.. it says *error: invalid method declaration; return type required* in the method... what should I do? public void setStop(int day , int hour … |
|
*This program is supposed to printout all the first letters of the Strings enterned in an Array. Which works. but when I added some code to convert the first letters to uppercase, there's an error.* I put a comment in the code where the error is. what's wrong with that … |
|
I don't understand why it just prints numbers. /* This program converts the first letters of the entered strings for an array to uppercase*/ import java.util.*; import java.lang.String.*; public class myfirstarray{ static Scanner scan = new Scanner(System.in); static String str1, str2,str3, str4,str5; public static void main (String[]args){ String[] items = … |
|
Re:
/** * @(#)SavingsAccountTest.java * * SavingsAccountTest application * * @author Kelvin Njuguna * @version 1.00 2012/4/24 */ public class SavingsAccountTest { public static void main(String[] args) { double interest1,interest2; double newBalance1,newBalance2; SavingsAccount.modifyInterestRate(0.04); SavingsAccount saver1 = new savingsAccount(2000.00); SavingsAccount saver2 = new savingsAccount(3000.00); for(int=0;i < 12;i++); { system.out.printf("Month %d:\n",i+1); interest1 = … |
|
/*This code counts the vowels in strings? It has to use user defined methods: */ import java.lang.String; import java.io.*; import java.util.*; public class vowelConsonant2 { static Scanner scan = new Scanner(System.in); public static void main(String args[]) { String text; int actualI, actualC; System.out.println("Enter the String:"); text = scan.nextLine(); System.out.println("There are … |
|
Re:
hey guys, im having problem converting this to a while loop. int lineB; int starB; for(lineB=1; lineB<=10;lineB++) { for(starB=10; starB>=lineB; starB--) System.out.print("*"); System.out.println(); } System.out.println(); Can it be written like this? int lineB=1; int starB=1; while(lineB<=10) { while(starB>=lineB) { StarB--; System.out.print("*"); System.out.println(); } lineB++; } |
|
Re:
1) My outlook, I had several people BLOCKED via mail rules, I REMOVE the rules & the blocked senders just re appear again, I want to remove the blocks but it seems like I cant? No idea why? 2) Verizon e mail many people say they e mail me YET … |
|
number = 10; sum = 0; for (var i=1; i<= number; i++) { sum = sum + number; } document.write("sum = " + sum); number = 10; for (var i=number; i > 0; i--) { if ( i%2 == 1) document.write(i); } product = 1; number = 5; for (var … |
|
Re:
the purpose of my program is to ask the user for their numerical grades (depending on how many total grades they have) and then they are given their letter grade. but i cant get the for loop to loop the question according to their number of total grades [code=JAVA] import … |