Hello everyone,
If I have the method:
<Li
public Cars findByNumber(String carNumber){
private ListArray<Object> car = new ListArray<Object>();
Now If I convert the String into an Integer:
Integer carnum = new Integer(carNumber);
-- and someone passes letters instead of numbers in the string...
Hello everyone,
How do I display something like this from a toString()?
Current board:
1 2 3 4
1 * * * *
2 * * * *
3 * * * *
4 * * * *
I am using a multi-dimensional array.
Hey everyone,
Ive been working on this for hours!
I have three variables: a, b, c
I am suppose to use a.compareTo(b)
Here is the function:
public int compareTo(Number t){
if(t.getNumber() > this.getNumber()){
return 1;
}else if(t.getNumber() < this.getNumber()){
return -1...
Hello everyone,
I created a simple program, and i noticed that printf is not skipping any lines. How do I have printf skip lines?? Below is the program:
import java.util.Scanner;
public class Testin {
public static void main(String[] args) {
double number = 5...
Hey everyone,
I am creating a simple Java program. Thats suppose to output:
Enter integer of up to 4 digits in size: 368
Thousands place: 0
Hundreds place: 3
Tens place: 6
Ones place: 8
So im using the int:
Scanner keyinput = new Scanner(System.in);
System.out.print("Enter integer of up...
first make sure your index file is up to date:
updatedb
Then "locate directory"
Use pico to create a text file. Or you could use nano:
pico myfile.txt or nano myfile.txt
Write to it, then press CTRL+X (Save it!)
hey,
I have a game server running on my system. I have multiple games, and i crontab different files every couple minutes to start the games if they arent up already. It seems like my if statement isnt working right though, it keeps restarting every server, even if they are up. Can someone...
Hello,
I have a server box (with freebsd), with about 25 users. The directory is /home/(usernames)
How Do I find out how much space (quota) each user is using? And then how do I limit them space? Thank you all very very much!
Hi everyone,
First off I have the driver ATI Mobility radeon
version 6.14.10.6343
This has been an on-going process of trying to install the the ATI drivers for linux. My specific linux is Debian 3.1r2, and i updated to testing so I have KDE 3.5 and everything. I downloaded...
Hey everyone,
I have about 10 files in my directory
06_12_2006
06_19_2006
06_20_2006
07_05_2006
07_02_2006
08_15_2006
08_22_2006
ect:
I configured this script:
month=$(date +%m)
year=$(date +%Y)
mv /directory/$month_(?myquestion?)_$year /backup
How Do I make the (?myquestion?) a wildcard...
Hey everyone,
I got my server to run ssh with an rsa key, so I don't need to use a password when ssh'ing between servers. Anways, i created a bash script:
#!/bin/bash
scp file username@theserver.com:/home/user
Ok, when I bash this in the shell, It works fine 100% and exports to the other...
When I created the user "username" I gave it a password. Does that password have to be in the paraphrase? Becasue When I created the id_dsa.pub on the gentoo server, I left the paraphrase blank. Does that matter? The directory is 700 on the .ssh directory on the Fedora 5 server. Thanks...
Ok Guys, Im using Gentoo on the main server and on the destination server I have Fedora 5. I created the id_dsa.pub on the Gentoo server. It reads something like this:
ssh-dss AAAAB3NzaC1kc3MAAACBAJzy8XoNhIOOJRgpNfQHywLeMUQXq7+YaY+0rWdZ8Wy0/ = username@theserver.com
Then I copied that...
Hey everyone,
I am running Suse 10.1 on my laptop. Its slow, and my laptop is fairly new. What do you think is the best distro to put on a laptop? Maybe even something like openbsd or freebsd? I've tried Ubuntu, it was ok But I like KDE. What do you guys think?
Thanks ostek, johnherman, and feherke
I created a key
ssh-keygen -d -C testing@server.website.com
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa): /root/.ssh/id_dsa
/root/.ssh/id_dsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.