Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 2,799
» Latest member: Jerrygef
» Forum threads: 856
» Forum posts: 3,643
Full Statistics
|
Online Users |
There are currently 2 online users. » 0 Member(s) | 1 Guest(s) Google
|
Latest Threads |
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 457
|
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 736
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 766
|
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 862
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,031
|
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,410
|
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,831
|
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,633
|
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,631
|
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 15,942
|
|
|
Help finding problem |
Posted by: gfb - 10-22-2013, 12:09 PM - Forum: Programming Help
- Replies (1)
|
|
I have been following these tutorials but I can't seem to find the problem. I changed some names just so that it makes me think a little more.
Here is what i have:
Code: public class digitextractor {
int number = 0;
String snumber = "";
public digitextractor(int numberSequence) {
int number = numberSequence;
}
public digitextractor(String numberSequence){
snumber = numberSequence;
}
public void returnorder(){
int integer1 = 0;
int integer2 = 0;
int integer3 = 0;
int integer4 = 0;
int integer5 = 0;
integer1 = (number % 10);
integer2 = (number % 100) / 10;
integer3 = (number % 1000) / 100;
integer4 = (number % 10000) / 1000;
integer5 = (number % 100000) / 10000;
System.out.println(integer1 + "\n" + integer2 + "\n" +
integer3 + "\n" + integer4 + "\n" + integer5);
}
public void returnorderThroughString(){
char part1;
char part2;
char part3;
char part4;
char part5;
part1 = snumber.charAt(4);
part2 = snumber.charAt(3);
part3 = snumber.charAt(2);
part4 = snumber.charAt(1);
part5 = snumber.charAt(0);
System.out.println(part1 + "\n" + part2 + "\n" + part3 + "\n" + part4 + "\n" + part5);
}
}
Code: import java.util.Scanner;
public class digitfinished {
static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
// process starts
System.out.println("Welcome to this thing." + "\n" + "Enter your number");
String in = input.nextLine();
digitextractor product = new digitextractor(Integer.parseInt(in));
product.returnorderThroughString();
System.out.println("Using Strings");
digitextractor output = new digitextractor(in);
output.returnorderThroughString();
}
}
|
|
|
Problems with dividing a string |
Posted by: brco900033 - 10-19-2013, 12:09 PM - Forum: Programming Help
- Replies (6)
|
|
I have already another question, I'm not asking how to do something for a change.
I have written something but it seems that it doesn't work properly and I don't know what the problem is.
The purpose of the code is to divide a key (length of key can varie) into parts of each 4 characters.
[code2=vbnet]Dim strings As New List(Of String)
'Just an example of the key, this string will be generated randomly
Dim s As String = "p6s0arJHmuOQmUhIczfnynRS1dOrRxYm0EF05b5Vk1YR7TQVItShNjFJQ1L3d"
Dim i As Integer = 0
Dim intMaxNumber As Integer = CInt(Math.Round((s.Length / 4), 0))
For i = 0 To intMaxNumber Step 4
strings.Add(s.Substring(i, 4))
Next
For Each srtininglist As String In strings
MessageBox.Show(srtininglist)
Next[/code2]
Everything goes fine when I debug it but it seems that the code only returns 4 parts, and it should (in this case) be about 16 parts.
I'm probably making a logical mistake but I can't figure out what I'm doing wrong.
Hope someone can help me out,
Brecht
|
|
|
Rename application file |
Posted by: brco900033 - 10-12-2013, 06:25 AM - Forum: Programming Help
- Replies (3)
|
|
Hi
Is there a way of renaming the application file itself while it is running? I saw somewhere a code snippet to do it and I think it is possible but I can't remember how.
|
|
|
Double Clickable |
Posted by: justindude - 10-09-2013, 04:15 PM - Forum: Java
- No Replies
|
|
How does one make a double clickable jar file so that it opens when you double click it and you don't have to go to the cmd to type java -jar jarfile.jar to send to people without jdk?
|
|
|
The forum is a mess - Let's fix it. |
Posted by: brandonio21 - 09-20-2013, 11:06 PM - Forum: Computing
- No Replies
|
|
Hey guys! I hope we're all doing well!
So I recently ran into a bunch of errors regarding an anti-spam mod I have been using for a bit. It turns out, my knowledge of phpBB is so minimal that updating the plugin(mod) caused the forum to die.
Well, this caused me to look into the forum's mySQL and FTP structures. They are a catastrophe.
Several years of uneducated modification has ruined the structure of the forum - so I am going to have to fix it. I am going to start by uninstalling all mods and starting from scratch. Keep in mind, users, posts, pictures, files, and all of our precious data shouldn't go anywhere. I will also be making regular backups.
With that being said, if you experience any forum downtime in the next few weeks - do not be alarmed! It is intentional! (More or less)
But - Do you guys have any suggestions for improvements for the forum? Theme suggestions? Ranking suggestions? Feature suggestions? Anything at all? Your contribution is much appreciated!
*Sorry for the crazy English - I am very tired.
|
|
|
NumberFormatException with Snake |
Posted by: Timkat1994 - 09-16-2013, 03:04 AM - Forum: Programming Help
- Replies (1)
|
|
Hi! I'm following the 8th video of the Snake tutorial and I seem to have missed something and/or completely screwed up. I just started trying to learn Java today and after watching the Tutorials I got started on following the Snake videos. I learn well by example, so these have all been fantastic. I've been at it for hours now, and I can't seem to find what I've done wrong here. The file on the snake page here doesn't have the High Score part added, otherwise I would compare that and mine. Any help would be much appreciated!
Here is the error message:
Exception in thread "Thread-3" java.lang.NumberFormatException: For input string: " 40"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at snakeCanvas.CheckScore(snakeCanvas.java:175)
at snakeCanvas.Move(snakeCanvas.java:142)
at snakeCanvas.run(snakeCanvas.java:267)
at java.lang.Thread.run(Unknown Source)
Here is my progress:
<!-- m --><a class="postlink" href="http://pastebin.com/w7zjJ1fe">http://pastebin.com/w7zjJ1fe</a><!-- m -->
|
|
|
Create the perfect Windows GUI |
Posted by: brco900033 - 09-09-2013, 10:15 AM - Forum: Graphic Design
- No Replies
|
|
I was just surfing on the web about creating a usefull Windows GUI and found that Microsoft has a document with general guidelines on how to create the perfect Windows User-Interface.
You can download this document in PDF format here: http://download.microsoft.com/download/e...XGuide.pdf
This document contains 900 pages, thus very detailed. Ofcourse you can read the topics that you need information about and skip the rest.
It contains very usefull information as I stated before, for example on hoiw to use Listboxes, Buttons, how to write down your Text and how to use a ProgressBar... The list goes on and on.
Definitely something you should try out
Greetings, Brecht
|
|
|
Need help with Joomla php Script |
Posted by: redcore - 09-09-2013, 06:30 AM - Forum: HTML/CSS/PHP (Web Development)
- No Replies
|
|
I am a total php newbie and hope to find someone who could help on a few issues:
Site CMS=joomla 2.5; the component breezingforms/contentbuilder requires certain php code to link a field to a task i.e. referring to a URL. I have more detail for someone willing to help.
|
|
|
|