- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
26 Posted Topics
Hello, i'm working on a simple program where i can enter a name and number and it will save it to notepad .txt file. I have everything figured out up until actually saving the text i enter. what code do i use to do this, in the program i have … | |
I'm going to be purchasing a tablet. I develop in android and I am delving into tablet based apps. The tablet i purchase will be used for debugging/testing heavily. Between the two Nexus: http://www.newegg.com/Product/Product.aspx?Item=N82E16834230663 Transformer: http://www.newegg.com/Product/Product.aspx?Item=N82E16834230698 Which would you all reccommend? I figured I'd ask here in hopes some of … | |
hello, i have made the code below. however, when comparing the two strings they are not equal when in theory i thought they would be. String word="abc"; String d=""; d += "a"; d += "b"; d+= "c"; if(word==d) { System.out.println("IS EQUAL"); } When i just print out string d it … | |
Hello, i have a class "Die" and a class "PairOfDice" pair of dice extends die. i need to instance variables of type die in pairofdice constructor... i think. here are constructors for die and pairofdie.. we learned all of this earlier this semester but apparently i didn't learn it well … | |
Re: Sc.NextLine(); would read any and everything. String stuff = sc.nextLine(); (is this what you mean by generic? :S ) a user could type in "jdiofhdoifh44545454" and it would be stored as a string..... Im not sure if that helped :( | |
Hi guys, my program im working on ends when it shouldnt..... here's the main method. [code] public static void main(String[] args) { String answer; do { boolean whole=false; boolean whole2=false; Scanner sc = new Scanner(System.in); int one=0, two=0; do { try{ System.out.print("Enter the first whole number: "); one = sc.nextInt(); … ![]() | |
Hey for hw i gotta do a program that spits out the perfect squares between 0 and a number entered... well i got it done but it spits out 1 extra number that goes OVER what the person entered... here's my code. [code] public static void main(String[] args) { String … ![]() | |
Hey guys, im doing a rock paper scissors program for h/w i got it done but im getting an error and i cant figure out whats wrong. [code] public static void main(String[] args) { int pcpick; int userpick; String userChoice = JOptionPane.showInputDialog("1 Rock, 2 Paper, 3 Scissors"); int choice = … | |
Hi im working on this program im getting a runtime error that says this ArrayIndexoutofbounds exception 0. heres my code [code] import java.util.Scanner; public class MillerCalculateTime { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter miles: "); double miles = sc.nextDouble(); System.out.print("Enter Miles per hour: "); … | |
Hi, one of my labs were doing is a data gatherer, the user enters their first middle and last name all at once with a space between each. then enters there birth month day and year all at once with space between each. Then it outputs them in in a … | |
Re: where the heck do you find these EXAMPLES lol i never find such good ones | |
Hi i found this site and this guy tries to teach you how to make a chat program. Well i just copied his code in and... th program worked. I can send a message to the server and it sends it back just fine. But i can only send a … | |
Hi i thought of an idea, making a program that me and my friends could use as an instant messaging thing. Like the user types what they want to say and they send it, then that goes to a server that i would create and the server would send it … | |
hi i was reading my book and it was teaching me about LINQ and it had me create a form that displayed the all the system processes in a datagridview control. the code they gave me was this [code] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles … | |
Hi, so im having the user pick two separate colors. Now when they pick the 2.... im going to run an event that determines that combination..... for an example if the user picks red and blue the outcome will be +5 points. Now the only way i can think of … | |
Re: to try and re-create your problem to find a solution.... i made a file and placed it in C:\ and made a new form in VB and when i pressed the button on the form it would Process.start("C:\lol.bat") and it worked perfect.... the only way i could create a "file … | |
i was wondering are there mobile versions for programming? like vb.net mobile edition you could program ON your phone stuff like that, do such things exist? | |
is it possible to make a picturebox the acceptbutton? i tried this in form load [code] Dim picturebox1 As New Button Me.AcceptButton = picturebox1 [/code] is there a way i could do this? | |
Hi, i got a program im working on. it does some calculations using quantity and price in such. heres the calculation module. [code] Private Sub calculations() If AdultsizeRadioButton1.Checked = True Then adulttotaldecimal = quantityinteger * adultpricedecimal * hoursinteger ElseIf ChildsizeRadioButton2.Checked = True Then childtotaldecimal = quantityinteger * childpricedecimal * hoursinteger … | |
Hey guys, i'm just starting in VB and am experimenting with programs. I'm trying to make a simple program that when you type in your name and phone number it displays it in a label. So i have everything good up until getting the info from the box to the … | |
hi i'm working on a program using all if else statements. I think i've lost myself in all ifs and elses and i need your guys help! It was working fine until i added some new if elses in the middle of the code heres what it looks like [code=java]import … | |
hi, i just learned how to use the while code and put it in a simple program im working on, i however am stumped on how to use it in a part of it here is a snippet of the program code [code=java]String classname, faction; Scanner inputDevice = new Scanner(System.in); … | |
hi, this is a program where you type a name of a class and it gives a brief description, what i want to do is after it gives the description of a class it goes back to the beginning of the script and asks you to enter another one. How … | |
hi, i'm making a simple program where it when you type a name of soemthing from a video game it will give you a brief description, i'll be using if and else statements, here is what i have so far. [code=java]import java.util.Scanner; public class WoW { public static void main(String[] … | |
hi, i'm working on a little project i made for myself, i want to create a menu with 4 choices and i want to use an array cause im struggling to understand how write them, now ive started to do it but i've lost myself in the code and don't … | |
hi i don't have my book with me and i can't remember what is the code for let's say, the console asks "please enter your name" what would be the code for wanting to take what they type and assign a value like name = "whatever they type" [code=java] system.out.println("Please … |
The End.