how would i write that...just leave an empty space?
Type: Posts; User: HappyCamper
how would i write that...just leave an empty space?
so what exactly would i put inside the if statement?
i know it would be
if(original.charAt(i)==" ")
{
(What would go here?)
}
my code works but only for words...How could i make my code so it can also tell if phrases (such as taco cat) are palindromes.
package Homework5;
import java.util.Scanner;
class HW5
{
...
hmm im thinking....how would i assign the number of locations randomly to mines? thats what im having trouble with haha
sorry i know my variables are a bit confusing but would i just have to randomize the number of mines? would i have to create a public static final int of 10? since the board is 10 by 10
i need to fill up 1/10th of the board with mines but i am only able to successfully put 1! also my goal is not showing up on the game even though i put it as an up arrow.
package Homework4;
...
i need to output the unsorted array as well as the sorted array...the sorted array works but i can not get the unsorted array to work. please help!
package Lab7;
import java.util.Scanner;...
My if else statement is not working...it keeps telling me that the else in the statement is a syntax error and that I should remove it. Whats wrong with it?
package Homework2;
import...
okay this is what i have at the moment....
package Homework1;
import java.awt.Component;
import javax.swing.JOptionPane;
//I had to use scanner in this program because I had to create objects...
alright this is what i have now....
package Homework1;
import java.awt.Component;
import java.util.Scanner;
import javax.swing.JOptionPane;
//I had to use scanner in this program because...
I ran it and it came up as a dialog box but i also had to input my password and username into the console instead of the dialog boxes. How would i do without Scanner?
alright i did that and i think it is right! could you run it for me yourself and see if it is right?
package Homework1;
import java.awt.Component;
import java.util.Scanner;
import...
So i have this source code...
package Homework1;
import java.util.Scanner;
//I had to use scanner in this program because I had to create objects that were in the Scanner class, such as in...
actually I think I may have fixed it! can anyone check to see if this works for them?
package Homework1;
import java.util.Scanner;
//I had to use scanner in this program because i had to...
My assignment is this :
Use Java to write and run a simple console-window program for checking passwords. The program must satisfy the following requirements:
· When the program runs, it should...
what do you mean loop fashion? I am very very new at this (like a week into class) so we haven't gone over all of this yet. I am trying to understand but damn am I confused haha
--- Update ---
...
So are you saying I should just get rid of the public static boolean stuff?
--- Update ---
I am so confused now :(
would i just store the correct password by using String password1 = "password";
--- Update ---
I created it so that i can now any 1 character and the password is right but i dont know how to...
package class1;
import java.util.Scanner;
//I had to use scanner in this program because i had to create objects that were in the Scanner class, such as in row 17.
// The password to this...
Hello Ada! I was wondering if you could type out a simple draft of what you are trying to tell me haha I'm sorry but i'm a huge noob at this and i do better with seeing :)
How do I go from typing in the username to then typing in the password because every time i type in the username it gives me an error
i am very new at this haha youre going to have to go over this with me..i mainly am using ints because that is what we have learned so far haha
okay i updated my post
Use Java to write and run a simple console-window program for checking passwords. The program must satisfy the following requirements:
· When the program runs, it should first print its name,...