User Profile
Collapse
-
extract string from cookie value
203.114.10.66 - - [01/Aug/2008:05:41:21 +0300] "GET /stat.gif?stat=v &c=F-Secure&v=1.1%20 Build%2014231&s =av%7BNorton%20 360%20%28Symant ec%20Corporatio n%29+69%3B%7Dsw %7BNorton%20360 %20%28Symantec% 20Corporation%2 9+69%3B%7Dfw%7B Norton%20360%20 %28Symantec%20C orporation%29+5 %3B%7Dv%7BMicro soft%20Windows% 20XP+insecure%3 BMicrosoft%20Wi ndows%20XP%20Pr ofessional+f%3B 26027%3B26447%3 B26003%3B22452% 3B%7D&r=0.9496 HTTP/1.1" 200 43 "http://dfstage1.f-secure.com/fshc/1.1/release/devbw/1.1.14231/card.html"... -
I try to type like that
public void chooseType asInteger (String s) {
}
when i compile it,it say that an error occur where there is no (
what it mean..and how to correct it... -
Thank Jos for your help. The snippet is the one you send to me earlier one right. Hehe. I think i know what to do. In the do while statement, i will write it as when user key in 1 then selectSeat(seat Type); to allow the user to select the seats when the integer is true. Where else the while statements will give an errors message. Hehe
I really wanna thank for all your patient in teaching me to a good students in Java.Thank...Leave a comment:
-
Gannon11,
I look at the tutorial, i only can understand 40% out of it. When it come to my coding i don;t really know how to apply it. can you show me your ways in writting the throw and catch exception in my code, so i am able to get that picture of how it is used....Leave a comment:
-
Jos,
In my code where should i write this coding. Anyway my friend thought me something, before i asked the user to select the type of seats, an if statements was used. The if statement is like first i check whether the user key in an number or not if is not a number then error message out. But this manner was not really good.
Would you be able to write the parse.Int(S) code for me, i mean where should i write such thing in...Leave a comment:
-
Dear Chief Editors,
Would you show me some examples, how can i write the code. Because i am self-learning the Java language.i know about IOException but i don't know how to use it....Leave a comment:
-
Thank for the Editing, anyway i am blur on how to write the validation that only number can be accepted to book the seats. If user key in Alphabert the message will say string not allowed. Where and how i should write. Would be happy if you can show me the code.
Joseph...Leave a comment:
-
Thank you for your help, But i don't really understand what you mean by using regular expression. Would you show me the code by typing it in red words. Thank you.I really newbie to IOException packages, i don;t really know how to apply. Would be happy if you can teach me....Leave a comment:
-
Input Validation
[CODE=java]import java.applet.App let;
import java.awt.*; // Contains all of the classes for creating user interfaces and for painting graphics and images.
import java.awt.event. *;//The root event class for all AWT events.
import java.lang.Objec t;
import java.util.Event Object;
import javax.swing.*;//Provides a set of "lightweigh t" (all-Java language) components that, to the maximum degree possible, work... -
How to write validation where String/char cant be accepted
[CODE=java]import java.applet.App let;
import java.awt.*; // Contains all of the classes for creating user interfaces and for painting graphics and images.
import java.awt.event. *;//The root event class for all AWT events.
import java.lang.Objec t;
import java.util.Event Object;
import javax.swing.*;//Provides a set of "lightweigh t" (all-Java language) components that, to the maximum degree possible, work...
No activity results to display
Show More
Leave a comment: