... I absolutely cannot ... figure out how to sort this ArrayList.. please I'm literally begging.. this is the ONLY thing i can't do its been 4 hours now of searching online/reading and i still can't...
Type: Posts; User: coke32
... I absolutely cannot ... figure out how to sort this ArrayList.. please I'm literally begging.. this is the ONLY thing i can't do its been 4 hours now of searching online/reading and i still can't...
Okay, we are just learning how to read in from a file and I'm having trouble with what seems like the easiest part. I need to sort my ArrayList full of objects which are "Shapes" by name first, and...
NEW PROBLEM!!!!
So I've been at this and have been making progress but at the moment I'm running into a problem of generating "unique non duplicate boards". I'll show you my current driver and my...
unfortunately I don't know how to debug my programs all that well. We haven't gone over that too much yet. but I have figured out why the x's or o's weren't generating! I never declare what this.size...
I'm not sure.. it should be either an 'x' or and 'o' in the output and they should be stacked to look like a tic-tac-toe board. heres my fill method code
public void fillWithRandomXandO()
{...
import java.util.Scanner;
public class TTTDriver {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int size;
int numberOfBoards;
int...
I just tried to generate a board and my toString() method for my array doesn't work. we can't print from the method as printing the array seems simple to me with nested for loops. but generating a...
I haven't even gotten to a point for board outputs atm, been trying to think of a way to generate the most possible (non duplicate boards) given the user's input of size.
This is for a college class so I already understand if you can't straight up tell me the answer. That being said I still am in need of help...
CompSci 251: Spring 2012
Programming Assignment...
well i guess i'll just take a zero because i have absolutely no idea.
well I got it to print the correct number of characters by printing "?" instead of guess. but "?" is taking place of spaces, i tried to do an if statement where as if the charAt(i) wasn't between 'a'...
yea idk if i'm just overlooking this problem, but my entire class seems to be having trouble with this "simple" task. I can't get the secret phrase to be displayed as a hidden message with ?'s. not...
import java.util.Scanner;
public class Exam01 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner stdIN = new...
Need help figure out a way using for loops or while loops to convert a string into astericks or question marks except not the white spaces.
Example:
I am going to sleep ==> * ** ***** ** *****...
Yea I'm still struggling to get an output with this, even when using you're properly nested code, could it be because of my version of java on my macbook?
I still can't seem to get it to have an output after user input. I've tried all kinds of boxing idk if I'm doing it right though :/. Still looking for help
I see what you're saying as far as my blocks go(literally just learned about nesting the if statements), but when I copied your code in their the compiler gave me loads of errors. I got time but was...
Okay first things first here was my assignment:
secondly heres my code:
import java.util.Scanner;
public class Weekly03 {
/**
* @param args
Just kinda looking to brainstorm with people or get some good tips (looking to learn too not just post here for someone to do my hw). Remember I'm literally like only 2 weeks into java, we are just...
Hey, Names Ryan I'm majoring in computer science and its my sophomore year, I did minimal visual basic in high school and am now currently enrolled in an introduction to java class. I'll be looking...