- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I'm 18 years old an am in my 3rd quarter at Neumont University. I have been programing in java for 1.5 years and javascript, hml, and css for half a year
- Interests
- Programming (of course), video games, music, playing the trumpet, playing tennis, hanging out with friends,…
- PC Specs
- Leveno Thinkpad w500. Duo core @2.53GHz, Windows 7
30 Posted Topics
[CODE] <Window.Resources> ... ... <DataTemplate DataType="{x:Type my:Section}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Name}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Instructor}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Cours}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Instructor}" x:Key="InstructorDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=FirstName}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Cours}" x:Key="CourseDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock … | |
Re: For number 6, you can use the scanner again (so that you know what the user wants to search for). This will most likely involve a while loop | |
Re: Have you done any code for the models or controllers? | |
Re: Use the spilt method (which goes into a string array) so string.split(" ")...that should do it | |
Is there a way to add a user to a group in J2EE dynamically (using glassfish btw)? If so, is there a away to have a user in a group called members to be promoted to an admin group. Thanks in advance | |
Re: Try a flowlayout or a Boxlayout | |
I get this error when i write to my C drive using an ObjectOutputStream [CODE] List<String> strings = new ArrayList<String>(); strings.add("test1"); strings.add("test2"); strings.add("test3"); IO.IO.writeListToFile("C:\\Users\\coconnor\\Documents\\Java\\ToolKit\\", strings); [/CODE] [CODE] public static void writeListToFile(String location, List<?> list) { ObjectOutputStream p = null; File f = new File(location); try { p = new ObjectOutputStream(new … | |
[CODE] public void setTableModel(List<Users> users) { eraseTableRows(); for (int i = 0; i < users.size(); i++) { Users u = users.get(i); tm.insertRow(i, new Object[] { stuff }); } } private void eraseTableRows() { for (int i = 0; i > tm.getRowCount(); i++) { tm.removeRow(i); } [/CODE] i've tried this and … | |
Re: user regular expressions Check out the pattern class and the Matcher class in the java api | |
[CODE] private Map<String , String> c = new HashMap<String , String>(); .... //regx to get mString c.put(mString.group() , mString.group()); ..... //regx to get mNumber c.put(mNumber.group() , mNumber.group()); ....... Set set = c.entrySet(); Iterator i = set.iterator(); while( i.hasNext() ) { Map.Entry me = (Map.Entry) i.next(); System.out.println(me.getKey() + " : " … | |
[CODE] String test = "for (int i = 55; i < 60; i++)"; String line = ""; String replace = " Tester." + "n" + Tester.counter + ";"; Pattern p = Pattern.compile(reg); Matcher m = p.matcher(test); if (m.find()) { String s = "public static double n" + counter + " … | |
ok, so i have this [B]so far [/B] [CODE] String p = "(http|ftp|https):" + // sees if the proto is any of these " (\\:[\\w^\\:]+:)? " + // gets the sub-proto " \\/\\/" + // the two forward slashes "([\\w*.]+)" + // gets the subdomain(s), domain and tld "[\\:\\w*^"; [/CODE] … | |
Re: please post in code tags | |
Re: well you should have a product class that has a price field and have a set and get method. This would allow you to easily change a product's price from any other class | |
Re: are those all inner classes? | |
![]() | Re: does your vehicleCMD class have a constructor that takes in a String as a param? |
Re: .....and that's what she said. But in all seriousness you need to put that in code tags and look up the scanner class | |
Re: What type of variables are the quiz and assignment? | |
Re: I think you need to do/show a little work first before you ask for help | |
Re: Have you tried if statement(s) trying to see if the expression contains a * (using substring) and then have a boolean like isAtFront that is true if the * is at the front and false if the * is at the back | |
[CODE] maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH); System.out.println(maxDays); [/CODE] When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated | |
Re: [QUOTE=jwenting;1190095]Week 0: come up with a different product name. The name "Tetris" is trademarked worldwide and the owners are extremely agressive in enforcing that trademark, taking anyone using it without permission to court even if there's no commercial interest.[/QUOTE] lol | |
Re: You could make an array that coincides with the button array. Like this [CODE] double [] nums = {2.5,3,4.9,2,7.1,5,6,8,7} [/CODE] and then compare the indexs | |
Re: [QUOTE=softdev;1189122]Hi Guys, I've noted that when using Netbeans, .jar file is created when you build your application. if i want executable jar file of my application, can i just take the same generated jar file, or should i create my own .jar via the command prompt. I mean whats the … | |
[CODE]void age() { boolean isValid = false; Calendar user = null; while (!isValid) { System.out.print("Enter Date (mm/dd/yyyy): "); DateFormat df = new SimpleDateFormat("MM/dd/yy"); String s = In.in(); Date date = null; try { date = df.parse(s); } catch (ParseException e) { System.out.println("Date error"); } user = Calendar.getInstance(); user.setTime(date); if (user.getTime().getTime() … |
The End.